What Chao Ge said

Source: Internet
Author: User

During statistics, values are transferred from one page to another. Because Ajax exists, the second page needs to go through page_load twice, the headache is that the value sent from the first page cannot be obtained for the second time.

Super brother said: When Ajax requests to the server, there is no page refresh, and there are random parameters, the server considers it to be two pages. Therefore, if the parameter value passed for the first time is not included, it will not be displayed, because it is considered to be two different pages, the label is a client control, viewstate can also be stored on the client, the server side has not passed the value, so it will not be obtained, the session is the entire lifecycle. You can obtain the value in it unless it is released or exceeds the lifecycle.

I hope I understand it!

 

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.