Pass text from one webform to another webform with vb.net


I know this is fairly simple but I have been at it for a week and I am still confused. I just want to pass info from a txtbox on one webform to a txtbox on another webform using a click event.
I have tried a bunch of stuff like server.transfer and session varibles but I am unable to make either one work. [Pretty sure we can attribute that to me :)] This information is not sensitive and security for this function is not needed. I only need to retain one or sometimes two txtboxes from one webform to the other so Server.Transer seems like overkill [unless my understanding of it is wrong] Any help will be greatly appreciated. Please be as specific as possible. Thanks in advance for any help.
nomadic1
0 nomadic1 12/5/2004 3:11:25 AM

Page 1:
'Set the session variable
Me.Session("strText") = Me.MyTextBox.Text
Page 2:
'Retrieve session value
dim strText as String = CStr(Me.Session("strText"))
Me.MyTextBox2.Text = strText
If this doesn't work, post your code so we can have a look at it.


Jared Livingston
MrLivingston.com - Livingston Family Website

Test/Demo site - moonmark.com
0 wunderkinder 12/5/2004 4:22:37 PM
Worked perfectly .... first try.

I had to delete 18 lines of my code that did not work.
I must have been thinking toooooo hard.
Simple is definitely better. Thank you for your help.
I added this because I had to pass two values instead of one.
Me.Session("strText") = Me.txtName.Text
Me.Session("strText2") = Me.txtAddress.Text
dim strText as String = CStr(Me.Session("strText"))
Me.txtName.Text = strText
dim strText2 as String = CStr(Me.Session("strText2"))
Me.txtAddress.Text = strText2
nomadic1
0 nomadic1 12/5/2004 7:36:03 PM
Reply:

(Thread closed)