You have to save the Data in session on Button Click like this
|
1
2
3
4
5
|
protected void PicPhoto(object sender, EventArgs e)
{
Session["Name"] = txtName.Text.Trim();
Session["City"] = txtCity.Text.Trim();
}
|
and in Page Load you need to check if the Session has some value then put the value in TextBox
|
1
2
3
4
5
6
7
8
9
10
11
|
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
if (Session["Name"] != null)
{
this.txtName.Text = Session["Name"].ToString();
}
}
}
|
In this way you need to check for city and you other fields
Thank You.