Solution to Postback new window problem in IE web dialog box
Author:Eve Cole
Update Time:2009-06-20 16:54:58
Problem description:
I recently worked on a document circulation project and used IE web dialog boxes for some operations. However, I found that when using IE web dialog boxes, whether it is .net's Postback, the above hyperlinks, or JS page jumps, it will cause IE opens a new window.
Solution:
Prepare two pages on the homepage, one is the page with iframe (here I call it page A), and the other is the page to be called by the original IE web dialog box (here I call it page B).
The iframe content of page A points to page B, and then page A is loaded when the IE web dialog box is opened. At this time, no matter whether page B is Postback or page jumps, it will not cause a new window to be opened.
In fact, the principle is to add a "middle layer" to the original method. When opening the IE web dialog box, the page calling sequence is:
IE web page dialog box -> Load B page now looks like:
IE web page dialog box -> load page A -> then load page B from the iframe of page A