Hi Use the below Code on Page1
protected void Page_Load(object sender, EventArgs e)
{
if (PreviousPage != null && PreviousPage.IsCrossPagePostBack)
{
TextBox1.Text = Session["Rajesh"].ToString();
}
}
protected void ButtonNext_Click(object sender, EventArgs e)
{
Session["Rajesh"] = TextBox1.Text;
Response.Redirect("default2.aspx");
}
On Page2 button ButtonPrevious tag use PostBackUrl property to go back to previous page
<pre lang="xml"><asp:Button ID="ButtonPrious" runat="server" onclick="Button1_Click" PostBackUrl="~/Default.aspx" Text="Button" />
This will help you to maintain the previuos page state of the control
Please dont forget to vote if it is helped to you