Most of the time we need to pass data to multiple pages, such as a form submission that specifies the submission of data to a page, then closing a page how to pass the data to the previous page or its parent page.
Here I attach a source for the current page to close the specified page refresh.
Child page Methods
Save the form; function Acceptclick (callback) { if (!$ (' #form1 '). ValidForm ()) { return false; } var postdata = $ ("#form1"). Getwebcontrols (keyValue); $. Saveform ({ URL: "). /.. /jgmanage/food/saveform?keyvalue= "+ keyValue, param:postdata, loading:" Saving data ... ", success: function () { callback ("1"); } }) }
When the page is saved, its parent page refreshes and reloads the data.
Parent Page Method
New function Btn_add () { Dialogopen ({ id: ' Form1 ', title: ' Add New dish ', URL: '/jgmanage/food/ Foodform ', width: ' 300px ', height: ' 300px ', callback:function (Iframeid) {//callback method top.frames[ Iframeid]. Acceptclick (data) { if (data = = "1") { $ (' #gridTable '). Trigger (' Reloadgrid ');} }); } }); }
In the same vein, data transfer is possible.
Asp. NET multi-page transfer data, frame source