![]() ![]() | ||
This class gives you access to the HTML <a> tag in server code. Here is the inheritance hierarchy of this class:
Object Control HtmlControl HtmlContainerControl HtmlAnchor
You can find the notable public properties of HtmlAnchor objects in Table 19.10 and their notable events in Table 19.11. (This class has no non-inherited methods.) Note that as with other HTML server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class; you can find them in Tables 15.1 to 15.3. This class also inherits the HtmlControl class—you can find that class in Table 19.2—and the HtmlContainerControl class, which you can find in Table 19.3.
Property |
Means |
---|---|
HRef |
Gets/sets the target of the link (set to an URL). |
Name |
Gets/sets the anchor's bookmark name. |
Target |
Gets/sets the link's target window or frame to display new information in. |
Event |
Means |
---|---|
ServerClick |
Occurs when the user clicks an anchor control in the browser. This event is handled in the server. |
![]() ![]() | ||