The use mode window showmodaldialog () pop-up page is frequently used in Asp.net
You can click "modify" to bring up the modification page. After the modification is successful, close the modification page and refresh the parent page.
A problem currently exists: After refreshing the parent page, click Modify to bring up the modification page. The data displayed on the modification page is not the modified data, this is the first time that the old data on the modification page is displayed. Here, the cache data in the clear mode window is involved.
This involves the showmodaldialog cache mechanism. We need to manually add some CodeTo clear the cache.
The procedure is as follows::
First, in the front-end interface (aspx Interface) code, add: <meta http-equiv = "expires" content = "0"/> <% -- used to clear the cache, the expires value is assigned to the page_load function on the background page -- %>
Then in the background interface (CX Interface), In the page_load function, if (! Ispostback ){...} In addition, add code: Response. expires =-1; // used to clear the cache
In this way, the cache data in the mode window can be cleared, haha