I've got a gridview with a template column calling a javascript
"win.open" routine (see below).
asp code:
<asp:TemplateFi eld
HeaderText="Let ter code"
ItemStyle-HorizontalAlign =Center>
<ItemTemplate >
<asp:hyperlin k
ID=letter_code
runat=server
NavigateUrl=<
%#String.Format ("javascript:vo id(OpenPopupWin dow('letter_res ponse_detail.as px?
letter_code={0} ','width=900,he ight=450,top=47 5,left=300,scro llbars=yes,resi zable=yes'));", Eval("letter_co de"))
%>>
<%#Container.Da taItem("letter_ code")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateFie ld>
/asp code
Code for the routine is :
<script language="javas cript">
function OpenPopupWindow (target_url,win _options)
{
Window.open(tar get_url,null,wi n_options)retur n false
}
</script>
This works fine. The problem that I have, is that I now need to call
the popup with two extra parameters which are taken from 2
dropdownlists elsewhere on the form.
Suggestions as to how I do this?
Cheers
"win.open" routine (see below).
asp code:
<asp:TemplateFi eld
HeaderText="Let ter code"
ItemStyle-HorizontalAlign =Center>
<ItemTemplate >
<asp:hyperlin k
ID=letter_code
runat=server
NavigateUrl=<
%#String.Format ("javascript:vo id(OpenPopupWin dow('letter_res ponse_detail.as px?
letter_code={0} ','width=900,he ight=450,top=47 5,left=300,scro llbars=yes,resi zable=yes'));", Eval("letter_co de"))
%>>
<%#Container.Da taItem("letter_ code")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateFie ld>
/asp code
Code for the routine is :
<script language="javas cript">
function OpenPopupWindow (target_url,win _options)
{
Window.open(tar get_url,null,wi n_options)retur n false
}
</script>
This works fine. The problem that I have, is that I now need to call
the popup with two extra parameters which are taken from 2
dropdownlists elsewhere on the form.
Suggestions as to how I do this?
Cheers
Comment