Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 19, 2007 11:56 AM by sachin_himcs
Dec 19, 2007 09:15 AM|LINK
Hi all ,
i've got data from user input textbox on page 1
i want to retrieve this user input data on page 2 to display on a label.
????????????? HOW ?????????
Dec 19, 2007 11:23 AM|LINK
There are several ways to do that
Among the above you can use any one of them
For reference :
if u have any concerns post me
Dec 19, 2007 11:27 AM|LINK
U have to pass the value to the second Page using
And then Retrive the value in the second page using
Dec 19, 2007 11:28 AM|LINK
there are some methods to do this ,in that query string is one of the method.
for that you put this code in page1 button click event
Label1.Text = Request.QueryString[
Dec 19, 2007 11:29 AM|LINK
In page1 on button click event, add query string variable like this,
and in Page2 -- on load event, retrieve that variable.
string str = Request.QueryStrinf["val"].ToString();
Dec 19, 2007 11:41 AM|LINK
below is a nice article with example on QueryString
Passing variables between pages using QueryString
hope it helps./.
Dec 19, 2007 11:56 AM|LINK
in .net 2.0 you can use directive @previouspagetype to get control value on next page.you read this tutorial.
plz mark if it is your answer of your question.