M
matt.grande
Hi all,
My code:
protected void Page_Load(object sender, EventArgs e)
{
string et = Request.Form["__EVENTTARGET"];
if ((IsPostBack) && (et.Equals("")))
{
ExecuteCustomSearch();
}
}
There are times when I will click a button, and ExecuteCustomSearch()
shouldn't run, but the EventHandler of that button should. However, if
ExecuteCustomSearch() doesn't run (ie, if the if statement is false),
the EventHandler for the button won't run.
Why is this? How can I get around it?
(PS: The buttons are created dynamicly, if that makes a difference)
My code:
protected void Page_Load(object sender, EventArgs e)
{
string et = Request.Form["__EVENTTARGET"];
if ((IsPostBack) && (et.Equals("")))
{
ExecuteCustomSearch();
}
}
There are times when I will click a button, and ExecuteCustomSearch()
shouldn't run, but the EventHandler of that button should. However, if
ExecuteCustomSearch() doesn't run (ie, if the if statement is false),
the EventHandler for the button won't run.
Why is this? How can I get around it?
(PS: The buttons are created dynamicly, if that makes a difference)