Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,

I want to open Popup window when the hyperlink clicks in gridview.
This hyperlink is inside template field.

here, its opening full page...I need width=500px and height=500px when hyperlink clicks.
and the popup window must be in center.

This is my code.


C#
<asp:HyperLink runat="server" NavigateUrl='<%# string.Format("ViewDetailsPopup.aspx?IncId={0}&INo={1}&UserName={2}&Priority={3}&LocationDesc={4}",
                  HttpUtility.UrlEncode(Eval("Id").ToString()), HttpUtility.UrlEncode(Eval("INo").ToString()), HttpUtility.UrlEncode(Eval("UserName").ToString()),HttpUtility.UrlEncode(Eval("Priority").ToString()),HttpUtility.UrlEncode(Eval("LocationDesc").ToString())) %>'
                  Text="View Details"/>



Please help.

Thank you.
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900