Session value transfer in the modal window

Source: Internet
Author: User
Symptom:
1. When a parameter is passed to the modal window, the session (...) is displayed for the first time (..) This value. When the session is assigned another value, the modal window returns the previous value.
2. During the development process, the pages opened in the modal window will be automatically cached, making the program unable to enter the breakpoint, causing great trouble for program debugging.

Solution 1:
Clear cache on the current page,
Add
<% @ Outputcache duration = "1" varybyparam = "NONE" %>
You can disable the current page cache.
Solution 2:

Add a random number to the call connection so that the modal window is considered to be a different connection.

Example:

VaR A = Window. showmodaldialog ("basedetail_ctl.jsp? Datetime = "+ new date (). tostring () + "& year =" + stryear + "& month =" + strmonth, "", "status: No; resizable: Yes; dialogheight: pixel PX; dialogwidth: 460px; unadorne: yes ");

Datetime = "+ new date (). tostring () is used to add a random number to the call connection so that the modal window is considered as a different connection.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.