AddHandler question

  • Thread starter Thread starter Craig Buchanan
  • Start date Start date
C

Craig Buchanan

I have two AddHandler statements in the Page_Load sub. Do these only fire
during a postback?

Thanks,

Craig Buchanan
 
I suspect they will fire every time the page postsback unless you protect
them using IsPostBack
 
If you're asking if the Event Handler Method that it refers to will fire
during a PostBack, the answer is, it will fire if it is added correctly
during the PostBack, and if a client-side event has triggered it. An Event
Handler could not fire if there is no PostBack, because the only time this
occurs is when the Page is first loaded into the browser, and therefore, no
client-side events have occurred. A client-side event triggers a PostBack.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top