7.1. Types of server controls

When we create web forms, we can use the following types of controls.

  • HTML server controls Such controls expose an object model that maps very closely to the HTML elements they render. All HTML server controls can be bound to a data source. Table 7.1 shows some of the HTML server controls available in ASP.NET.

    Table 7.1. Some of the HTML server controls found in ASP.NET
    HTML control Description
    HtmlAnchor Used to create web navigation links.
    HtmlButton Used to create a button – an element that can be clicked on in order to perform an assigned task. This control can contain any type of HTML code, which makes it very flexible.
    HtmlForm Used to define an HTML form. When the form is submitted, the values of controls ...

Get A Programmer's Guide to .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.