Easy Tutorial
❮ Prop Webcontrol Tablecell Horizontalalign Aspnet Hashtable ❯

ASP.NET HtmlAnchor Control



Definition and Usage

The HtmlAnchor control is used to control the <a> element. In HTML, the <a> element is used to create hyperlinks. Hyperlinks can link to bookmarks or other web pages.


Properties

Property Description
Attributes Returns all attribute names and values of the element.
Disabled Boolean value indicating whether the control is disabled. Default is false.
HRef The URL of the link.
id The unique ID of the control.
InnerHtml Sets or returns the content between the start and end tags of the HTML element. Special characters are not automatically converted to HTML entities.
InnerText Sets or returns all text between the start and end tags of the HTML element. Special characters are automatically converted to HTML entities.
Name The name of the anchor.
OnServerClick The name of the function to be executed when the link is clicked.
runat Specifies that the control is a server control. Must be set to "server".
Style Sets or returns the CSS properties applied to the control.
TagName Returns the tag name of the element.
Target The target window to open.
Title The title displayed by the browser (e.g., the title attribute of an img element).
Visible Boolean value indicating whether the control is visible.

Example

HTMLAnchor


❮ Prop Webcontrol Tablecell Horizontalalign Aspnet Hashtable ❯