Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I copy a value of a control to another page 1

Status
Not open for further replies.

eulogy6

Programmer
Apr 30, 2004
26
I have a control for example textbox1 in "default.aspx".
It's possible to copy the "textbox1.text", let's say to
textbox2.text in "products.aspx" ?

Thanks
 
If you do a server.transfer from page1 to page2 you can do a textbox2.text = Request.Form("TextBox1")

OR

Assign the text of textbox1 to a session variable and assign textbox2.text = session variable name.
 
Yes, but you've got to PUT the value on the querystring and redirect to page2?text1val=[text1.value here] and then get it on the Page_Load of Page2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top