Programming HTML Controls
In this section we'll take a look, one by one, at the HTML controls provided by ASP.NET and show you examples of some of the more interesting ones.
HtmlAnchor
Member of System.Web.UI.HtmlControls.
Assembly: System.Web.Dll.
The HtmlAnchor control encapsulates the <a> tag with a server-side control model. You shouldn't use this for every link, but it makes it easy to dynamically generate links as needed.
Properties | ||
---|---|---|
Attributes | ClientID | Controls |
Disabled | EnableViewState | Href |
ID | InnerHtml | InnerText |
Name | NamingContainer | Page |
Parent | Site | Style |
TagName | Target | TemplateSourceDirectory |
Title | UniqueID | Visible |
Methods | ||
DataBind | Dispose | Equals |
FindControl | GetHashCode | GetType |
HasControls | RenderControl | ResolveUrl |
ToString | ||
Events |
Get C#® Developer's Guide to ASP.NET, XML, and ADO.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.