B
Bob
For all the control event handling, one can either override the protected
methods:
OnLoad(EventArgs e),
OnInit(EventArgs e),
OnPreRender(EventArgs e) etc,
or add handler functions like
Load_Handler(object sender, EventArgs e),
Init_Handler(object sender, EventArgs e),
PreRender_Hanlder(object sender, EventArgs e)
and hook them to the Load, Init, PreRender events (e.g. this.Load += new
EventHandler(Load_Handler). What are the scenarios for using one vs. the
other?
methods:
OnLoad(EventArgs e),
OnInit(EventArgs e),
OnPreRender(EventArgs e) etc,
or add handler functions like
Load_Handler(object sender, EventArgs e),
Init_Handler(object sender, EventArgs e),
PreRender_Hanlder(object sender, EventArgs e)
and hook them to the Load, Init, PreRender events (e.g. this.Load += new
EventHandler(Load_Handler). What are the scenarios for using one vs. the
other?