I've read and read and can't seem to an answer specific to my problem.
I have a hyperlink link inside of a datagrid control which resides in a TemplateColumn. I want the window to open as a popup when the hyperlink is clicked. This was straight forward enough when I was using a HyperlinkColumn, however I was unable to pass multiple parameters to the QueryString so I was forced to switch the a TemplateColumn.
Origninally, when I was using the HyperlinkColumn, my code looked like this:
Now, my code is as such:
Can anyone show me how I can make the latter code open in a popup just as in my previous example?
Any help is appreciated.
Thanks,
Kevin
I have a hyperlink link inside of a datagrid control which resides in a TemplateColumn. I want the window to open as a popup when the hyperlink is clicked. This was straight forward enough when I was using a HyperlinkColumn, however I was unable to pass multiple parameters to the QueryString so I was forced to switch the a TemplateColumn.
Origninally, when I was using the HyperlinkColumn, my code looked like this:
Code:
<asp:HyperLinkColumn Text="Details" DataNavigateUrlField="P_ID" DataNavigateUrlFormatString="javascript:void window.open('P_Details.aspx?P_ID={0}',null,'width=640;height=480;scrollbars=1;resizable=1');"></asp:HyperLinkColum
Now, my code is as such:
Code:
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink runat="server" Text="View Details" NavigateUrl='<%#"P_Details.aspx?P_ID="& Container.DataItem("P_ID")&"&LastName="& Container.DataItem("Last_Name")%>' ID="Hyperlink1" />
</ItemTemplate>
</asp:TemplateColumn>
Can anyone show me how I can make the latter code open in a popup just as in my previous example?
Any help is appreciated.
Thanks,
Kevin