from Page1.aspx I open Page2.aspx as a dialog.

$.mobile.changePage("Page2.aspx", {
            role: "dialog",
            transition: 'flip',
            theme: "b"

On Page 2 I have an asp:button that I want to execute the server side click event for the button which resides in Page2.aspx.

<asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" />

Clicking this button will return me to Page1.aspx but without running btnInsert_Click server side on Page2.aspx. How do I raise Page2.aspx server side click event before the dialog closes?

Related posts

Recent Viewed