弹出窗口
问题描述:
朋友,
我正在使用Web应用程序.
我在Gridview控件中有LinkButton.单击LinkButton时,它将打开弹出窗口,并在popwindow中执行一些数据库操作,然后关闭弹出窗口. ..
GridView控件(LinkButton)->父控件
(弹出窗口)->子控件.
如何处理....
请帮助我..如果有任何示例...
Hi Friends,
i am working in web application.
I have LinkButton in Gridview Control.. On Click of LinkButton It open the popwindow and i do some database operation in popwindow and close the popwindow.. then the linkbutton should be disable and second step the linkbutton should be disable while doing paging also....
GridView control(LinkButton) -->Parent Control
(Popwindow) --> Child Control.
How to handle this....
Please help me.. if any example is there...
答
您必须编写JavaScript才能禁用控件.如有必要,请使用控件的ClientID获取客户端ID.
You have to write javascript to disable your control. Use the ClientID of the control to get the client side id if needed.
看看以下内容: ^ ]
在其中,关闭新窗口后,将在父页面上执行部分更新.相反,您只需禁用Javascript本身中的链接按钮并继续.
Have a look at this: Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]
In it, after the new window is closed a partial update is executed on parent page. Instead, you just disable the link button there in Javascript itself and carry on.