Using ASP.NET HTML Controls
We have been talking a lot about ASP.NET controls. A detailed discussion of each ASP.NET Server control goes beyond the scope of this book, but this discussion should get you familiarized with some key highlights of the controls. As previously mentioned, ASP.NET enriches HTML controls to be utilized in a server-based programming model. Table 8.1 presents a quick look at some of the HTML controls.
HTML SERVER CONTROL | DESCRIPTION | ABBREVIATED CODE SYNTAX |
---|---|---|
HtmlAnchor | Link control, corresponds to the HTML <a> tag |
<a id="id1" href="..." name="..." OnServerClick="..." runat="server">text</a> |
HtmlButton | Button control, corresponds to the HTML <button> tag |
<button id="..." OnServerClick="..." runat="server">button ... |
Get Microsoft® .NET Kick Start 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.