D
DotNetGruven
I've got a page that does a search... There is an ImageButton on it that
allows the user to reset the search.
The Click Handler for the button clears out the Data and then redirects to
the same page with Response.Redirect("Search.Aspx", true);
Sometimes the code in Page_Load within the IsPostBack part of the if
statement runs and sometimes it doesn't. IN other words, sometimes
IsPostBack is true and sometimes it is not!
How can I reliably post back to the same page from within an event Handler
and get a fresh post?
I've tried Response.Redirect with both true and false as the second
parameter and Server.Transfer.
One final note, the page in question is the default page for the directory
set via the IIS snapin. (not sure if this is important)
TIA
geo
allows the user to reset the search.
The Click Handler for the button clears out the Data and then redirects to
the same page with Response.Redirect("Search.Aspx", true);
Sometimes the code in Page_Load within the IsPostBack part of the if
statement runs and sometimes it doesn't. IN other words, sometimes
IsPostBack is true and sometimes it is not!
How can I reliably post back to the same page from within an event Handler
and get a fresh post?
I've tried Response.Redirect with both true and false as the second
parameter and Server.Transfer.
One final note, the page in question is the default page for the directory
set via the IIS snapin. (not sure if this is important)
TIA
geo