Basic Web Controls in ASP.NET

Basic Web Controls:

These Web controls are similar to HTML server controls .These controls have a richer and more consistent object model.

List of Basic Web Controls:

Label: Label is used to display text. If we want to display static text, we do not need a Label server control, we should instead use HTML. We should use a Label server control only if we need to change its properties via server code.

TextBox: TextBox control enables the user to enter text. By default, the TextMode property is SingleLine, but it can also be set to Multiline or Password. In the case of Multiline text box, the Rows property determines the height. If its AutoPostBack property is set to True, it generates a PostBack on its Text_Changed() event.

Buttons: All three types of buttons cause PostBacks when the user clicks them.
i. Button: Button controls can be placed inside other container controls, such as DataList, DataGrid and Repeater.
ii. LinkButton: The LinkButton renders a hyperlink in the page.
iii. ImageButton: The ImageButton displays an image that responds to mouse clicks. We can also use it as an image map. Thus, we may pinpoint wherein the graphic the user has clicked.

CheckBox: It enables the user to input Boolean data: true or false, yes or no. Its Checked property can also be bound to a data field of a data source. Its CheckedChanged event can be used for AutoPostBack.

ListControls:

These controls are derived from the ListControl abstract.
i. CheckBoxList:
ii. DropDownList:
iii. ListBox:
iv. RadioButtonList:

HyperLink: It displays a link to another page. It is typically displayed as text specified in its Text property. It can also be displayed as an image specified in the ImageUrl property. If both the Text and ImageUrl properties are set, the ImageUrl property is displayed. If the image does not exist, then the text in the Text property is shown.

Image: We may use the Image control to display an image on the Web page. The ImageUrl property specifies the path to the displayed image. When the image does not exist, we can specify the text to display in place of the image by setting the AlternateText property. Image control only displays an image. If we need to capture mouse clicks on the image, we should instead use the ImageButton control.

Panel: It can be used as a container of other controls. This control is rendered as an HTML <div> element.

RadioButton: It creates an individual radio button on the page. We can group them to present mutually exclusive choices.

Table: It enables us an HTML table. A table can be built at design time with static content, but the Table control is often built programmatically with dynamic contents. Programmatic additions or modifications to a table row or cell do not persist on PostBack. Changes to table rows or cells must be reconstructed after each post to the server.

XML: This control can be used to transform XML documents.