D
DaveyP
I've got a gridview with a template column calling a javascript
"win.open" routine (see below).
asp code:
<asp:TemplateField
HeaderText="Letter code"
ItemStyle-HorizontalAlign=Center>
<ItemTemplate>
<asp:hyperlink
ID=letter_code
runat=server
NavigateUrl=<
%#String.Format("javascript:void(OpenPopupWindow('letter_response_detail.aspx?
letter_code={0}','width=900,height=450,top=475,left=300,scrollbars=yes,resizable=yes'));",Eval("letter_code"))
%>>
<%#Container.DataItem("letter_code")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
/asp code
Code for the routine is :
<script language="javascript">
function OpenPopupWindow(target_url,win_options)
{
Window.open(target_url,null,win_options)return 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:TemplateField
HeaderText="Letter code"
ItemStyle-HorizontalAlign=Center>
<ItemTemplate>
<asp:hyperlink
ID=letter_code
runat=server
NavigateUrl=<
%#String.Format("javascript:void(OpenPopupWindow('letter_response_detail.aspx?
letter_code={0}','width=900,height=450,top=475,left=300,scrollbars=yes,resizable=yes'));",Eval("letter_code"))
%>>
<%#Container.DataItem("letter_code")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
/asp code
Code for the routine is :
<script language="javascript">
function OpenPopupWindow(target_url,win_options)
{
Window.open(target_url,null,win_options)return 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