Label: Whenever you need to modify the text displayed in a page dynamically, you can use the Label control. Properties: 1. BackColor – Enables you to change the background color of the Label. 2. BorderColor – Enables you to set the color of a border render around the Label. 3. BorderStyle – Enables you to display a border around the label. Possible values are NotSet, None, Dotted, Dashed, Solid, Double, Groove, Ridge, Inset and Outset. 4. Borderwidth – Enables you to set the width of the border rendered around the label. 5. Font – Enables you to set the label’s font. 6. Forecolor – Enables you to set the color of the font of the Label. 7. Style – Enables you to assign style to the label. 8. ToolTip – Enable you to set a Label’s title attribute. 9. CssClass – Enables you to associate a Cascading Style Sheet class with the label. Literal: The Literal control is similar to the Label. You can use the Literal Control to display text or HTML content within a browser. However, unlike the Label control, the Literal Control does not render its content inside of <span> tag. Textbox:

· MaxLength: Enables you to specify the maximum length of data that a user can enter in a textbox. · Rows: Enables you to specify the number of number of rows to display. and Radiobuttons. · TabIndex: Enables you to specify the tab order of the text box. · AutoPostback: Enables you to post the form containing the Textbox back to the server automatically when the content of Textbox is changed. · AutoCompleteType: Enables you to associate an AutoComplete class with the Textbox control. Checkbox. (does not work in Multiline Textbox) · ReadOnly: Enables you prevent users from changing the text in a text box. · Enabled: Enables you to disable the text box. You can use the following properties to control the rendering characteristics of the Textbox control.The ASP. · Wrap: Enables you to specify whether text word-wraps when the TextMode is set to MultiLine. LinkButton: .NET framework includes several controls that you can use to gather user inputs. Textbox have one important property that is TextMode. Refer the following example for this property. · Columns: Enables you to specify the number of columns to display. The controls are Textbox.

which stands for Access Control List.NET Framework 2.0: 1. WHAT’S NEW IN . · ImageAlign: Enables you to set the image relative to other HTML elements in the page. 64-Bit Support: . But having some additional properties like. LinkButton have same properties. methods and events as Button and LinkButton.NET FRAMEWORK 2.0 has added several new classes. · ImageUrl: Enables you to specify the URL to the image. .LinkButton control. Unlike a Button control. the LinkButton control renders a link instead of a push button. is a list containing access permission for users to access the resources on a computer. like the button control. methods and events as Button ImageButton: ImageButton also have almost same properties. 2. ACL Support: ACL. however.0 provides new support for the development of 54-bit applications that run faster in comparison to 32-bit applications. · AlternateText: Enables you to provide alternate text for the image. like AccessControlActions and AccessControlModification that can be utilize by managed code to work with . enables you to post a form to the server.Net Framework 2.

Mime namespace. Database mirroring in SQL Server 2005.Net. which contain classes to support the concept of generics.0 provide the new stream classes. 8. Authenticated Stream Class: . applications can access the FTP resources. Generics: The concept of generics in . you can send either synchronous or asynchronous calls to verify the network connectivity. SQL Server UDT supports.Generic. Namespace System. 6.Net.Collection. The New Ping Class: The newly added Ping class provides functionality similar to the ping command.NET like Asynchronous processing. SMTP Support: Now. application can send e-mails to recipients by using classes in the System.NET Framework 2. With the Send and SendAsync Methods of the Ping class. FTP Support: Now with .ACL permissions.0 caters to the need of something like Templates in C++. Connection pooling control. 3. and WebClient.0. Schema discovery. Batch Processing. 4. New Features of ADO. 5. You can use this class to verify connectivity with remote computer. NegotiateStream class and SslStream that applications can use for authentication.NET Framework 2.NET Framework 2.Mail and System. 7. . DataRow enhancement. WebResponse. NET: Several new features has been added to ADO . This FTP access is achieved by using newly added classes WebRequest.

10.0 improves the functionality of the existing controls and adds a bunch of entirely new controls. you can simulate a Web server to process the HTTP requests. Determining Changes in Network Connectivity: Newly introduced NetworkChange class that enables application to determine the changes in the network connectivity. If the IP address of the network card or an adapter is changed due to any reason. · Validator controls can now be grouped that allows to selectively enabled validation for controls.NET 2.( This class will works only in Windows – XP with Service Pack 2.0 allows the Validator controls to be grouped so that a developer can enabled validation for a specific set of controls. · ASP.9. The Web server is active as long as the object of the HTTPListener class is alive. NetworkChange class generates this notification by raising the NetworkAddressChanged events. · All controls support adaptive rendering to render a Web application as per the requesting web browser. Enhanced Control Set: ASP .0 now come with the built-in support for themes and skins to customize appearance.1 standard. · Data Control can now use the new data-binding model. otherwise PlatformNotSupportedException. which could be a network cable unplugged or a hardware failure. · The markup generated by the controls now caters to the XHTML 1. · The controls in ASP .NET 2. or Windows Server 2003 environment. . Serving HTTP Requests within Applications: With the HTTPListener class. · All controls support themes and skins that help you to customize appearance.NET 2.

BMP and JPEG image. and other element of an image.NET Framework includes 18. and perform many other file related tasks. Port – The number of the port to use. The Microsoft . Host – The name or IP address of your email server.01. 12.105 public properties.619 types.Understanding Framework class Library: The . Here are just a few examples of the classes in the framework: · File Class: Enables you to represent a file on your hard drive. · Graphics Class: Enables you to work with different types of images such as GIF. For Example. · Methods: 1.Net Framework contains thousand of classes that you can use when building an application. Send – Enables you to Send and email message synchronously. delete a file. You can use the File class to check whether a file exists.909 classes. 2. SendAsync – Enables you to send an email message asynchronously.759 public methods. 93. here is a partial list of the members of the SmtpClient class: · Properties: 1. arcs.546 public events. 2. and 30. You can use the SmtpClient class to send emails that contain attachments and HTML content. PNG. · Events: . when sending an email message. 4. · SmtpClient Class: Enables you to send email. You can use graphics class to draw rectangles. · Random Class: Enables you to generate a random number. ellipsis. create new file.

Config file: A Web configuration file is a special type of file that you can add to your application to configure your application.NET provides a unique directory known as the App_Code to store the code files that are accessible to all the web . The SendAsync() method sends mail asynchronously means it does not wait to check whether the send operation was successful. Notes: The Send() method block further program execution until the send operation is completed. all tags contained in the file are case sensitive. · Using the Code Directory: By default ASP.1. Three methods are used to implement code sharing. therefore. Be aware that file is an XML file and. Code Sharing: Code sharing is mechanism with common code is shared among different pages of a Web application. About the Web. SendCompleted: Raised when an asynchronous send operations completes.

asax File: The global. When you add something to App_code directory.x version supports this method for code sharing. The only difference being that .NET application file.asax file are applied to all the resources of the Web application.pages of an application. such as sessions and application-state that are specified in the global. The bin directory is similar to App_Code directory except that it stores the precompiled assemblies of the code files that are required by all pages of a Web application. such as start of an application or error in an application.NET framework provides various assemblies that ate stored in the global assembly cache. Global. · Using the Global Assembly Cache: Another method of making the code for a specific functionality available to all the web pages of Web application is by using the global assembly cache. The code in the global.NET Web application.config file. The . These assemblies can be accessed by all the web pages of the Web application. such as class or .wsdl files. The ASP. are raised by ASP.NET 1. it is automatically detected and compiled.asax file resides in the root directory of an application and is called ASP. you need to write the code in web. It contains the code that is executed when certain events. Events and states. · Using the Bin directory: The code for a specific functionality in a Web application can also be made accessible to all the web pages of Web application by storing the sharable files in the bin directory. To register or add the required assemblies in the global assembly cache.asax file is written in the same way as Web forms.

asax file does not contain the HTML or ASP. The Session-State: Each client accessing a Web application maintains a distinct session with the Web server. The Application-State: The application state is used to store the data corresponding to the global variables in ASP.the code written in global.config file and stores the data specific to a user session variables. The data stored in the application-state is accessible to all the pages of an ASP.asax file contains methods with predefined names.NET Web application and the data is same for all the users accessing the Web application. The data in the application-state is stored once and read many times. The code in global. Sessionsstate is used to store this information. The session-state is defined in the <sessionState> section of the web.NET Web application. You can access the information stored in the application-state by using the HttpApplication class property. The application-state uses the HttpApplicationState class to store and shared the data throughout the application. and there’s also specific information associated with each of these sessions. .NET tags.

The view state property is used to save the view-state for each control. the session variables can be accessed from any page of Web application. when a page is posted back to the server. such as Textbox and CheckedBox in the web page are not retained when the page is reloaded . Such a state of web page is called viewstate and is defined as a hidden field on a web page. such as HTML controls and Web controls used in a web page. Also. then the values written in various controls. The session ID is transferred between the server and the client over HTTP protocol using cookies.Different session variables are created for each user session. When a page is processed. If the ViewState property is not used. When user access a Web page a session ID is created. the current state of the page and control is hashed into a string and saved as a hidden field. The View-State: The view-state stores the page specific information.