|
Asp.Net is a technology used to build server side interactive, dynamic web pages.The Asp.net is a framework built on the Common Language Runtime(CLR).
Standard Namespaces
- System - Contains all the base classes eg Random number, Date and Time.
- System.Collection - Contains classes such as Hash Table, Array Lists.
- System.Configuration - Contains classes for working with Configuration files.
- System.Text - Contains classes for Encoding, Decordig, manipulating Strings.
- System.Web - Contains classes to work with www, server response and browser request.
- System.Web.Caching - Contains classes for caching web pages, User controls and Data caching.
- System.Web.Security - To Implement authentication and authorization.
- System.Web.SessionState - Contain classes for implementation session state.
- System.Web.UI - Basic classes in building the user interface of Asp.Net pages.
- System.Web.UI.HTMLControls - Contains the Classes for the HTML Controls.
- System.Web.UI.WebControls - Contains the Classes for the Web Controls.
Controls in Asp.Net :
1. Standard HTML Controls - All the html form controls are the standard control in the ASP.net for example:-
<input name="username" type="text" size="30">
2. Asp.Net HTML Controls :-The Asp.net controls are the controls which can run on server. The standard controls can be converted to smart Asp.net specific control by adding two attributes i.e "id" and "runat="server". For example:-
<input name="username" type="text" size="30" id ="control1" runat="server">
3. Web Controls - The Web controls are divided into five different groups.
- Basic Web Controls - Button, Checkboxes, CheckBoxList, DropDownList etc.
- Validation Web Controls - CompareValidator, CustomValidator, RangeValidator, RegularExpressionValidator, RequiredFieldValidator, Validation Summary
- Data Controls - DataGrid , DataList, Repeater,
- Rich Web Controls
- Mobile Controls
Benefits of Asp.Net Controls:
The folllowing are the benefits of Asp.net.
- An Intuitive Object Model
- View State : The Difference b/w the simple HTML control and Asp.Net Control is that the Asp.Net control retains the values that are put into it after the post to the server.
- This will provide cleanly separation b/w the design content of the page from the logic part.
- Enable you to maintain browser compatibility and still support browse features such as JavaScript.
|