Gridview超链接点击时如何打开弹出窗口 [英] how to open popup window when Gridview hyperlink clicks
本文介绍了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[^]
这篇关于Gridview超链接点击时如何打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文