Possible Duplicate:
previouspage.findcontrol getting variable from previous page
Hi am new to asp am using this code to get the value of textbox from the previous page
here is my code
if (!IsPostBack)
{
name1 = (TextBox)PreviousPage.FindControl("name");
Response.Write(name1.Text);
}
but this code returns the value of textbox name1=""
anyone can help me…..regarding this problem
you can try sessions
put previous pages textbox value to session like..
you declare this session in previous page then call it in current page
then this session you can use in your entire application for getting that textbox value..