Datagrid and popup

juliolark

New Member
Hi,<BR>I have a datagrid with the first column as hyperlink. How do I open a popup on clicking of this link and pass the Id bound to the hyperlink col in query string,<BR>like ?id=1<BR><BR>thanks in advance<BR>kingYou will just need to specify a javascript path with window.open, like "javascript:window.open('popup.aspx?ID={0}')" <BR><BR>Put the path in the NavigateURLFormatString property and put the database field of the id in DataNavigateURLField property. Like This:<BR><asp:HyperLinkColumn Text="Details..." DataNavigateUrlField="id" DataNavigateUrlFormatString="view.aspx?id={0}"></asp:HyperLinkColumn><BR>
 
Back
Top