The first time I used artDialog, I didn't know some basic attributes of artDialog. I called the iframe and then called the art. dialog. close.
Pop-up window method (refresh the current form when closing the pop-up window ):
The Code is as follows: |
Copy code |
Art. dialog. open ('editpublicinfo. aspx ', {title: 'add important notifications and special reminders', width: 800, height: 600, lock: true, CloseFn: function (){ Location. reload (); } }); |
How to disable artDialog when the server control button is used:
Place a hidden Panel on the page by default, and place the code in the Panel. This Panel is displayed when the event is executed.
As follows:
The Code is as follows: |
Copy code |
<Asp: Panel ID = "pnlClose" runat = "server" Visible = "false"> <Script type = "text/javascript"> // Method 1: Close the function by refreshing the parent page // Window. top. location. reload (); // Method 2: traverse all the forms popped up by art on the parent page and close JQuery. each (parent. art. dialog. dialogList, function (index, item ){ Item. close (); }); </Script> </Asp: Panel> |