Label
This control is used to display textual information on the web forms. It is mainly used to create caption for the other controls like: textbox.
To create label either we can write code or use the drag and drop facility of visual studio 2017.
This is server side control, asp provides own tag to create label.
Text Box
This is an input control which is used to take user input. To create TextBox either we can write code or use the drag and drop facility of visual studio IDE.
This is server side control, asp provides own tag to create it.
Button
This control is used to perform events. It is also used to submit client request to the server. To create Button either we can write code or use the drag and drop facility of visual studio IDE.
This is a server side control and asp provides own tag to create it.
Hyper Link
It is a control that is used to create a hyperlink. It responds to a click event. We can use it to refer any web page on the server.
To create HyperLink either we can write code or use the drag and drop facility of visual studio IDE. This control is listed in the toolbox.
This is a server side control and ASP.NET provides own tag to create it.
Radio Button
It is an input control which is used to takes input from the user. It allows user to select a choice from the group of choices.
To create RadioButton we can drag it from the toolbox of visual studio.
This is a server side control and ASP.NET provides own tag to create it.
Calendar
It is used to display selectable date in a calendar. It also shows data associated with specific date. This control displays a calendar through which users can move to any day in any year.
We can also set Selected Date property that shows specified date in the calendar.
Checkbox
It is used to get multiple inputs from the user. It allows user to select choices from the set of choices.
It takes user input in yes or no format. It is useful when we want multiple choices from the user.
To create CheckBox we can drag it from the toolbox in visual studio.
File upload
It is an input controller which is used to upload file to the server. It creates a browse button on the form that pop up a window to select the file from the local machine.
To implement FileUpload we can drag it from the toolbox in visual studio.
This is a server side control and ASP.NET provides own tag to create it.
Multiple File upload
ASP.NET FileUpload control provides AllowMultiple property to upload multiple files to the server. This property takes either true or false value.
Cookie
ASP.NET Cookie is a small bit of text that is used to store user-specific information. This information can be read by the web application whenever user visits the site.
When a user requests for a web page, web server sends not just a page, but also a cookie containing the date and time. This cookie stores in a folder on the user's hard disk.
When the user requests for the web page again, browser looks on the hard drive for the cookie associated with the web page. Browser stores separate cookie for each different sites user visited.
There are two ways to store cookies in ASP.NET application.
o Cookies collection
o HttpCookie
We can add Cookie either to Cookies collection or by creating instance of HttpCookie class. both work same except that HttpCookie require Cookie name as part of the constructor.
Session
In ASP.NET session is a state that is used to store and retrieve values of a user.
It helps to identify requests from the same browser during a time period (session). It is used to store value for the particular time session. By default, ASP.NET session state is enabled for all ASP.NET applications.
Each created session is stored in SessionStateItemCollection object. We can get current session value by using Session property of Page object. Let's see an example, how to create an access session in asp.net application.
Dropdown
The DropDownList is a web server control which is used to create an HTML Select component. It allows us to select an option from the dropdown list. It can contain any number of items
ASP.NET provides a tag to create DropDownList for web application. The following is the Syntax of DropDownList tag.
DataGrid
.NET Framework provides DataGrid control to display data on the web page. It was introduced in .NET 1.0 and now has been deprecated. DataGrid is used to display data in scrollable grid. It requires data source to populate data in the grid.
It is a server side control and can be dragged from the toolbox to the web form. Data Source for the DataGrid can be either a DataTable or a database. Let's see an example, how can we create a DataGrid in our application.
This tutorial contains two examples. One is using the DataTable and second is using the database to display data into the DataGrid.
Event Handling
ASP.NET provides important feature event handling to Web Forms. It let us to implement event-based model for our application. As a simple example, we can add a button to an ASP.NET Web Forms page and then write an event handler for the button's click event. ASP.NET Web Forms allows events on both client and server sides.
In ASP.NET Web Forms pages, however, events associated with server controls originate on the client but are handled on the Web server by the ASP.NET.
ASP.NET Web Forms follow a standard .NET Framework pattern for event-handler methods. All events pass two arguments: an object representing the object that raised the event, and an event object containing any event-specific information.
HTML Server Control
HTML server controls are HTML elements that contain attributes to accessible at server side. By default, HTML elements on an ASP.NET Web page are not available to the server. These components are treated as simple text and pass through to the browser. We can convert an HTML element to server control by adding