Hi all,
I am creating a real estate website. The website has a search. When the user clicks on the button I am using CrossPagePostBack to get the information from the search and showing it in another page with the gridview. The problem is that when I want to search in the target page the crosspagepostback is still is fired and I do not want it to happens. I want the CrossPagePostBack to be executed jsut once . The code I am using is the following:
protected void Page_Load(object sender, EventArgs e)
{
//Use IsCrossPagePostBack to determine if a postback occurred from the source page.
if (this.PreviousPage.IsCrossPagePostBack)
{
SaveData();
}
}
/// <summary&g ...
Go to the complete details ...