It consists of a large number of controls such as text boxes, buttons, and labels for assembling, configuring, and manipulating code to create HTML pages. NET web forms extend the event-driven model of interaction to the web applications. The Http Server Utility class provides numerous properties and methods to perform various jobs. It represents the values and properties of the HTTP request that makes the page loading into the browser. NET, the response object does not play any vital role in sending HTML text to the client, because the server-side controls have nested, object oriented methods for rendering themselves. The following table shows the inherited properties, common to all server controls: Let us look at a particular server control - a tree view control. Edit each of the nodes using the Tree view node editor as shown: Once you have created the nodes, it looks like the following in design view: The Auto Format... A check box displays a single option that the user can either check or uncheck and radio buttons present a group of options from which the user can select just one option. NET applications are compiled codes, written using the extensible and reusable components or objects present in . These codes can use the entire hierarchy of classes in . NET is used to produce interactive, data-driven web applications over the internet. Single Line creates a standard text box, Multi LIne creates a text box that accepts more than one line of text and the Password causes the characters that are entered to be masked. The mostly used attribute for a label control is 'Text', which implies the text displayed on the label.NET runtime codes, and incorporates the state of the server side components in hidden fields. The Web Control class itself and some other server controls that are not visually rendered are derived from the System. List boxes and drop-down lists contain one or more list items.This way, the server becomes aware of the overall application state and operates in a two-tiered connected way. NET component model provides various building blocks of ASP. Basically it is an object model, which describes: All ASP. These lists can be loaded either by code or by the List Item Collection editor. For example, consider the HTML input control: All ASP.
The browser submits a web form to the web server and the server returns a full markup page or HTML page in response. The label shows page load, page initialization and, the page pre-render events. The methods and properties of the Http Server Utility class are exposed through the intrinsic Server object provided by ASP. The following table provides a list of the properties: The request object is an instance of the System. The information presented by this object is wrapped by the higher level abstractions (the web control model). However, the Http Response object still provides some important functionalities, like the cookie feature and the Redirect() method. Redirect() method allows transferring the user to another page, inside as well as outside the application. The following table provides some noteworthy properties of the Response object: The following simple example has a text box control where the user can enter name, a button to send the information to the server, and a label control to display the URL of the client computer. A Tree view control comes under navigation controls. task allows you to format the tree view as shown: Add a label control and a text box control on the page and name them lblmessage and txtmessage respectively. To create a group of radio buttons, you specify the same name for the Group Name attribute of each radio button in the group.
For handling events, there are in-built attributes and event handlers. Items in a List Item Collection are numbered from 0.
Event handler is coded to respond to an event, and take appropriate action on it. When the items into a list box are loaded using strings like: lstcolor. Add("Blue"), then both the Text and Value properties of the list item are set to the string value you specify.
If you want to display text that does not change, you use the literal text.
Label controls provide an easy way to display text which can be changed from one execution of a page to the next.