简体   繁体   English

使用vb.net从父页面控制子弹出窗口

[英]control child popup page from parent page with vb.net

Using vb.net on an aspx code behind event, is there away to tell from a parent page if the child page popup is open, and then close the child page if it is truly open based on some event on the parent page, like clicking a gridview edit link, again? 在事件背后的aspx代码上使用vb.net,可以根据父页面上的某个事件,从父页面告诉子页面弹出窗口是否打开,然后关闭子页面(如果它确实是打开的),则关闭该页面。一个gridview编辑链接,再次?

SOLVED: I have no way to close this issue so I am posting a link to the solution I used...A jQuery plugin caled BlockUI which prevent access to the parent page until the child page is closed. 已解决:我无法解决此问题,所以我发布了我使用的解决方案的链接...一个jQuery插件将BlockUI命名为BlockUI,该阻止阻止访问父页面,直到关闭子页面为止。 Genius!! 天才!! jQuery BlockUI link jQuery BlockUI链接

With javascript you could open the window and keep a reference to it then use the reference to close it. 使用javascript,您可以打开窗口并保留对其的引用,然后使用该引用将其关闭。 If it's already closed it shouldn't make a difference really. 如果它已经关闭了,那实际上就不会有所作为。 See 看到

http://www.jguru.com/faq/view.jsp?EID=1365017 http://www.jguru.com/faq/view.jsp?EID=1365017

I don't think vb.net is going to help you much to be honest. 老实说,我认为vb.net不会对您有太大帮助。 The only way i can think of getting vb.net in the mix is get the child window to set a hidden field on child window open then use this value to register a javascript start up method which will close the window. 我能想到的在混合中获取vb.net的唯一方法是让子窗口在子窗口打开时设置一个隐藏字段,然后使用此值注册将关闭窗口的javascript启动方法。 Seems over engineered to me. 似乎对我来说工程化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM