Introducing Web Form Controls

As mentioned earlier, ASP.NET provides two sets of controls you can choose from when developing Web Forms. We suggest you spend most of your time using the standard Web Forms controls. You might also need to support existing HTML or ASP pages and therefore might need to investigate the HTML controls. The following subsections describe both types of controls.

HTML Controls

HTML controls mimic the actual HTML elements you would use if you were using FrontPage or any other HTML editor to draw your UI. You can use standard HTML elements in Web Forms, too. For example, if you wanted to create a text box, you would write the following:

<input type="text" id=txtFirstName size=25>

If you are using Visual Studio .NET, you ...

Get ASP.NET Developer's JumpStart 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.