Use Hyperlink Field to open window with JavaScript
I am trying to open up a pop up window when a link is clicked from my datagrid view. I was able to do this with the 1.1 datagrid but cannot get it to work with the new datagridview.
I have tried this tens of different ways and still can't get it to work. This is how my last unsuccessful try looks
VB Code:
<asp:HyperlinkField
DataTextField ="ueStore"
DataNavigateUrlFormatString="javascript:var ..(cont on next line)..
w=window.open('store_info.aspx?store={0}','','width=400,height=400');" />
Any ideas of how to accomplish this?
Re: Use Hyperlink Field to open window with JavaScript
<asp:HyperLink ID="newWindow" Runat="server" NavigateUrl="javascript:w=window.open(store={0}','','width=400,height=400');" >new Window</asp:HyperLink>