how to pass value from one page to another in asp.net

Posted by Shanky11 under ASP.NET on 7/16/2013 | Points: 10 | Views : 1654 | Status : [Member] | Replies : 1
there is a buttn and text box on page 1st
whatever user write in ths texbox
should display in anotehr page label
i am trying this
public String gettext
{
get
{
return TextBox1.Text;
}
}
Server.Transfer("Default2.aspx");


page 2 coding---------------
Label2.Text = PreviousPage.gettext;
but its not working




Responses

Posted by: Kamlesh420 on: 7/16/2013 [Member] Starter | Points: 25

Up
0
Down
go with the session or querry string it is very simple and easy to undersand

kamlesh kuamr saini
Sr. devloper (asp.net)
new delhi

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response