Gridview超链接点击时如何打开弹出窗口

问题描述:

大家好,



我想在超链接点击gridview时打开弹出窗口。

此超链接位于模板字段内。



这里打开整页......当超链接点击时我需要width = 500px和height = 500px。

和弹出窗口必须在中心。



这是我的代码。





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.


<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.

看一下这个链接。



在GridView中打开带有HyperLink的弹出窗口 [ ^ ]
Have a look at this link.

Open Popup Window with HyperLink inside GridView[^]