Display user input from a textbox into a label
how can i Display user input from a textbox into a label in another page in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
amr kamalPosted Jun 21, 2013, 3:33 PM
amr kamalPosted Jun 21, 2013, 3:32 PM
Pankaj PandeyPosted Jun 21, 2013, 1:19 AM
Session["a"]=textbox1.Text;
on another page write on page load event
if(Session["a"]!=null)
{
label1.Text=Session["a"].ToString();
}
Jignesh TrivediPosted Jun 20, 2013, 10:59 PM
Are you using winform application or web base?
if you are using winform than this value can be pass through Constructor of another form.
and if you use web application than you can pass this value using query string or other state managment.
hope this will help you.