How can we transmit complex data with a large amount of data between pages?

Source: Internet
Author: User
1. Generally, we use URL-based values to pass data with a small amount of data, such as some parameters. sessions are used to pass global session-level variables. However, to transmit some complex data between forms, the session life cycle is too long and may not be appropriate. If you use a URL to pass a value, Chinese characters may be incorrectly encoded, and the maximum data size that can be passed is limited.
2. The dialogarguments attribute of the modal dialog box can be used to transmit cross-page data,
You can obtain Dialogarguments attributes:
VaR Variables = Window. Dialogarguments
You can use this attribute to obtain the input parameters of the modal dialog box, which can be
String, numeric, object, or array value that specifies arguments. Especially for object or array parameters, it is very useful for transferring data between pages. Example:
Input page:
<HTML><HEAD><SCRIPT> function AddNew(meetingID)
  {
        var obj=new Object();
        obj.name="qiubinchao";
        obj.tel="12345678";
        var strUrl="../MeetingManage/NewMeeting.aspx?id="+meetingID;
        window.showModalDialog(strUrl,obj,"dialogHeight:700px;dialogWidth=900px;dialogTop=10px;dialogLeft:50px;"); 
        window.location="../MeetingManage/MeetingPublishedList.aspx";
  }
</SCRIPT> 
<HTML><HEAD><SCRIPT>var oMyObject = window.dialogArguments;var name= oMyObject.name;var tel= oMyObject.tel;</SCRIPT><title>Untitled</title>

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.