Tuesday, March 09, 2010

UserControl events in ASP.NET

Usercontrol's events
AbortTransaction:
It occurs when user ends transaction
CommitTransaction:
It occurs when user completes transaction
DataBinding:
It occurs when usercontrol binds to DataSource
Disposed:
When user control(Server controls) releases the memory.This is last stage of server control's life cycle.
Init:
It occurs when usercontrol initializes.This is the first step of server control's life cycle.
Load:
this event occurs where server control load into Page Object
PreRender:
occurs after the controls loaded but prior to rendering.
UnLoad:
Occurs where server controls unloaded from the memory