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 beString, 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>