Important Properties:
CausesValidation[1] indicate whether or not clicking the Button should initiate the validation logic (defaults toTrue). For example, when the user introduced some invalid data on the form and wants to click the Cancel button. This Cancel button shouldn't listen to the validation logic and carry on the execution.CommandName[2] when a Button, LinkButton, or ImageButton whoseCommandNameproperty is set is clicked from within a Repeater or DataList, the Repeater or DataList sItemCommandevent is raised. For the DataList, if theCommandNameproperty is set to a certain (special) value, an additional event may be raised as well. This specialCommandNameproperty values include, among others:
1. "Cancel": raises theCancelCommandevent;
2. "Edit": raises theEditCommandevent;
3. "Update": raises theUpdateCommandevent;
4. "Delete": raises theDeleteCommandevent;
Related articles:
[1] - Adding Validation Controls to the DataList's Editing Interface
[2] - An Overview of Editing and Deleting Data in the DataList
No comments:
Post a Comment