Author: marcelocbacchi | Posted on: 2/21/2010 1:50:50 PM | Views : 979

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 ...