简体   繁体   中英

How to open new window in asp.net and disable the old one?

I have an asp.net web page with a link button on it. When I click the button I need a new web page in a new window to be opened. While the new page is open, the old one should not be active. When I close the new page I need to return a value to the old page. Can you tell me how can I do that? Thank you very much in advance!

You want to use a Modal popup for this, basically a popup that will take focus and can't return to the containing page until the user closes the popup. You can pass variables in the usual way.

Link to modal popup documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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