![]() ![]() | ||
As discussed in the In Depth section of this chapter, link buttons look like standard hyperlinks, but actually work like buttons, letting you handle them in Visual Basic code. Link buttons are supported with the LinkButton class; here's the inheritance hierarchy for this class:
Object Control WebControl LinkButton
You can find the notable public properties of LinkButton objects in Table 17.7, and their notable public events in Table 17.8. (This class has no non-inherited methods.) Note that as with other Web server controls, I am not listing the no-table properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5.
Property |
Means |
---|---|
CausesValidation |
Gets/sets whether the link button performs validation in other controls. |
CommandArgument |
Gets/sets an optional argument holding data about the command specified with CommandName. |
CommandName |
Gets/sets the command name for this image button. |
Text |
Gets/sets the text displayed in the link button. |
Event |
Means |
---|---|
Click |
Occurs when the image button was clicked. |
Command |
Occurs when the image button was clicked—use a Command event handler for this one. |
![]() ![]() | ||