Hello all,
I am not able to send data from one web page to another web page by using request.form in framework 1.o
Can any one help me.
Code:
Page1.apsx.vb
'For Submitt buuton
server.transfer("page2.aspx")
i ahve one textbox in page1.aspx and if i click on submitt button i am sending that data to page2.aspx
page2.aspx.vb
'page load
dim uname as string
uname=request.form("textbox1")
i am using one label in page2.aspx
label1.text="welcome to" &uname
wheni debug this progrm i am not getting any value in uname.
why dont you pass the information as querystring? request.form is not a recommended way of passing data in asp.net.
Check out this Article -- http://www.developer.com/net/asp/article.php/3299641 .
The Answer to your problem is in this Article.