![]() ![]() | ||
We've already seen the Web server System.Web.UI.WebControls.Button class at work in this and the previous chapter; here is the hierarchy of this class:
Object Control WebControl Button
You can find the notable public properties of Button objects in Table 15.6, and the notable events in Table 15.7. (Note there's no table of methods here—Button inherits all its methods from the WebControl class.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Tables 15.1 to 15.5.
Property |
Means |
---|---|
CausesValidation |
Gets/sets the button that causes validation. |
CommandArgument |
Gets/sets the command argument, which is passed to the Command event handler. |
CommandName |
Gets/sets the command name, which is passed to the Command event handler. |
Text |
Gets/sets the caption in the button. |
Event |
Means |
---|---|
Click |
Occurs when a button is clicked. |
Command |
Occurs when a command button is clicked. |
Related solution: |
Found on page: |
---|---|
256 |
![]() ![]() | ||