Ans) For all these controls when postback controls are used as part of them like button in Gridview. We have to handle them with a concept called “Bubbled Events”
Gridview captures the event, Gridview call it’s own event called “Row Command”
Repeater/DataList ----- “Item Command”
When a container control like Gridview , DataList, Repeater are also contains postback controls and when they cause a postback . The event raised by the container control in response to it called “Bubbled Event”
Two attributes are called ------ CommandName and CommandArgument are used to interact with Bubbled events. These attributes are for “ ChildPostBack Controls”
CommandName : Specifies name for postback control.
CommandArgument : passes the required argument to bubbled event.
No comments:
Post a Comment