Control events
1. This event is fired when IsPostBack is true.
2. Use these events to handle specific control events, such as a Button
control's Click event or a TextBox control's TextChanged event.
PreRenderRaised after the page object has created all the controls that are
required for rendering which includes child controls and composite controls.
1. Use the event to make final changes to the contents of the page or its
controls before the values are stored into the viewstate and the rendering
stage begins.
2. Mainly used when we want to inject custom JavaScript logic.
SaveViewState
· All the control values that support viewstate are encoded and stored
into the viewstate.
RenderGenerates output (HTML) to be rendered at the client side.
· We can add custom HTML to the output if we want here.
Unload
1. Fired for individual controls first and then for page.
2. Used to perform cleanup work like closing open files and
database connections.
No comments:
Post a Comment