Controls Available in ASP.NET

0
13

ASP.NET Web server controls are objects on ASP.NET Web pages which run when the page is requested. They are also used to render markup to a browser. Many Web server controls resemble familiar HTML elements, such as buttons and text boxes. Other controls encompass complex behavior, such as a calendar controls, and controls that manage data connections.

HTML server controls

HTML elements interact with the server so we can use it for programming. By default, HTML elements within an ASP.NET file are treated as literal text and you cannot reference them in server-side code. In order to make these elements programmatically accessible, you can indicate that an HTML element should be treated as a server control by adding the runat=”server” attribute. Additionally you can also set the element’s id attribute to give you way to programmatically reference the control. Now you can set attributes to declare property arguments and even bindings on server control instances.

Web server controls

ASP.NET Web server controls are objects on ASP.NET Web pages which run whenever the page is requested and render markup to the browser. There are quite a few web server controls that are similar to familiar HTML elements, such as buttons and text boxes. Again other controls encompass complex behavior, such as a calendar controls, and controls that you can use to connect to data sources and display data.

Validation Controls

An important aspect of creating ASP.NET Web pages for user input is to be able to check that the information users enter is valid. ASP.NET provides a set of validation controls that provide an easy-to-use but effective way to check for errors and, if necessary, display messages to the user.

User Controls

A user control is a kind of composite control that works much like an ASP.NET Web page, meaning you can add existing Web server controls and markup to a user control, as well as define properties and methods for the control. You can then embed them in ASP.NET Web pages, where they act as a unit.These controls can be designed by the user and be reused throughout your webpage.

Other controls

We’ve only listed a few controls here, but keep in mind there are many others. Such include controls for mobile devices. For creating the mobile application we use same framework which we use for web application, but for example, we can create Mobile Web Forms instead of Web Forms in additional to creating pages and controls specifically designed for mobile devices.

Comment with controls you’ve designed and would like to pass on to other Developers!

Leave a Reply