Asp. NET multi-page transfer data, frame source

Source: Internet
Author: User
Tags saveform

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

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.