Command events expose CommandName and CommandArgument properties
to communicate their intentions to the parent control.
Event bubbling is a concept in ASP.NET whereby a control can raise an event through
its parent control hierarchy. RaiseBubbleEvent starts the event in motion. Parent controls
can catch the event by overriding OnBubbleEvent. RaisePostBackEvent is the method in
IPostBackEventHandler that allows a control to capture a postback generated by a change in data.
INamingContainer is used by a composite control to ensure that its child controls have a
unique name on the page even if the composite control is used several times on the page via
the UniqueID property.
Controls follow a well-defined life cycle execution process to help coordinate events and
activities. Understanding the control life cycle will ensure your custom controls behave as
expected. The complete control life cycle for an HTTP GET request includes these events in
order: Init, TrackViewState, Load, PreRender, SaveViewState, SaveControlState, Render,
Unload, and Dispose. The complete control life cycle for an HTTP POST request includes these
events in order: Init, TrackViewState, LoadViewState, LoadControlState, LoadPostData, Load,
RaisePostDataChangedEvent, PostBack, PreRender, SaveViewState, Render, Unload, and Dispose.
Pages:
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359