There are many articles discussing how to pass a reference between two pages. If the object on the page is set to Public, you can pass them on the page. Passing between the page is used
Server.transfer replace response.redirect.
example:
-------------in page a codebehind:
public class pagea: system.web.ui.page
{{
public system.web.ui.webcontrols.textbox textbox1;
public system.web.ui.webcontrols.button Button1;
// Standard Page Code (Page_Load, ETC)
// ....
// ....
Private void button1_click (Object Sender, System.eventargs E)
{{
Server.transfer (B.ASPX);
}
}
-------------in page b codebehind:
Private void page_load (Object Sender, System.eventargs E)
{{
paya myapage = context.handler as pagea;
string textboxfrompagea = myapage.textbox1.text;
}
Because all objects (A and B) when using server.transfer (A and B) were active on the server at the time, you can quote anything.
Slightly modify B.ASPX (provided by UESTC95):
pay mypage = (page) context.handler;
string textboxfromPagea;
TextboxfromPagea = (Textbox) mypage.findControl (textbox1). Text;
In this way, the ProteCTD type can be used normally in A.ASPX.
GOOD LUCK!