1. ASP.NET Introduction 2. Comp of .Net Framework 3.5 3. Sys.Req for VS 2008 4. ASP.NET Envrmnt Setup 5. VS2010 Ultimate Sys.Req 6. Installing VS 2010 7. VS 2012 Sys.Req 8. Installing VS Exp 2012 9. Start the VS 2008 10. Application Life Cycle 11. Page Life Cycle 12. Page Life Cycle Events 13. ASP.NET Example 14. Event Handling 15. Default Events 16. Server Side 17. Request Object 18. Response Object 19. Server Controls 20. Server Controls Properties 21. Server Controls Methods 22. HTML Server Controls 23. Client Side 24. ASP.NET Basic Controls 25. TextBox Control 26. CheckBox Controls 27. RadioButton Controls 28. ListBox Control 29. HyperLink Control 30. Image Control 31. BulletedList Control 32. ASP.NET Directives 33. Implements Directive 34. Master Type Directive 35. Page Directive 36. PreviousPage Type 37. Managing State 38. Control State 39. Cookies 40. Query Strings 41. Server-Side State 42. Session State 43. Validation Controls 44. Required FieldValidator 45. Range Validator 46. Compare Validator 47. RegularExpressionValidator 48. Custom Validator 49. Validation Summary 50. Data Source Control 51. AdRotator Control 52. Calendar Control 53. Calendar Control Example 54. Panel Control 55. Panel Control Example 56. Multi Views Control 57. MultiView & View controls 58. MultiView Control Example 59. FileUpload Control 60. FileUpload Control Eg 61. AJAX Control 62. UpdatePanel control 63. UpdateProgress Control 64. Custom Controls 65. Custom Control Eg 66. Personalization 67. Create Simple Profile 68. ADO.NET 69. ADO.NET Objects 70. DataTable 71. DataRow 72. DataColumn 73. Object Example 74. Error Handling 75. Tracing Errors 76. Debugger 77. Security 78. Authentication 79. Authorization 80. LINQ 81. LINQ Query Operators 82. LINQ Example 83. Caching 84. Data Caching 85. Output Caching 86. Object Caching 87. Web Services 88. Create Web Services Eg 89. Web & Machine.config 90. Settings Schema 91. ASP.NET Deployment 92. XCopy Deployment 93. Web Setup Project 94. ASP Interview Part 1 95. ASP Interview Part 2 96. ASP Interview Part 3 97. ASP Interview Part 4 98. ASP Interview Part 5 99. ASP Interview Part 6
Pr.Pg Next Pg

ASP.NET Server Controls tutorials

  • The ASP.NET page framework includes a number of built-in server controls that are designed to provide a more structured programming model for the Web. These controls provide the following features:

    1. Automatic state management

    2. Simple access to object values without having to use the Request object

    3. Ability to react to events in server-side code to create applications that are better structured

    4. Common approach to building user interfaces for Web pages.

    5. Output is automatically customized based on the capabilities of the browser.

  • In addition to the built-in controls, the ASP.NET page framework also provides the ability to create user controls and custom controls. User controls and custom controls can enhance and extend existing controls to build a much richer user interface. 


HTML Server Controls

  • The HTML server controls are Hypertext Markup Language (HTML) elements that include a runat=server attribute.

  • The HTML server controls have the same HTML output and the same properties as their corresponding HTML tags. In addition, HTML server controls provide automatic state management and server-side events.

  • HTML server controls offer the following advantages:

    1. The HTML server controls map one to one with their corresponding HTML tags.

    2. When the ASP.NET application is compiled, the HTML server controls with the runat=server attribute are compiled into the assembly.

    3. Most controls include an OnServerEvent for the most commonly used event for the control. For example, the <input type=button> control has an OnServerClick event.

    4. The HTML tags that are not implemented as specific HTML server controls can still be used on the server side; however, they are added to the assembly as HtmlGenericControl.

    5. When the ASP.NET page is reposted, the HTML server controls keep their values.

The System.Web.UI.HtmlControls.HtmlControl base class contains all of the common properties. HTML server controls derive from this class. 
To use an HTML server control, use the following syntax (which uses the HtmlInputText control as an example):

<input type=”text” value=”hello world” runat= server />


Web Server Controls

  • Web controls are very similar to the HTML server controls such as ButtonTextBox, and Hyperlink, except that Web controls have a standardized set of property names.

  • Web server controls offer the following advantages:

    1. Make it easier for manufacturers and developers to build tools or applications that automatically generate the user interface.

    2. Simplify the process of creating interactive Web forms, which requires less knowledge of how HTML controls work and make the task of using them less prone to errors.

  • The System.Web.UI.WebControls.WebControl base class contains all of the common properties. Most of the Web server controls derive from this class.
    To use a Web server control, use the following syntax (which uses the TextBox control as an example):

< asp:textbox text=”hello world” runat=server />

  • Web Server controls can be divided into four categories:

    1. Basic Web Controls

    2. Validation Controls

    3. List Controls

    4. Rich Controls


Basic Web Controls

  • Basic Web controls provide the same functionality as their HTML server control counterparts. However, basic Web control includes additional methods, events, and properties against which you can program.

  • For the example basic web controls are: Button, CheckBox, Hyperlink, Image Web Server Control etc.


Validation Controls

  • Validation controls are used to validate the values that are entered into other controls of the page. Validation controls perform client-side validation, server-side validation, or both, depending on the capabilities of the browser in which the page is displayed.

  • Validation controls offer the following advantages:

    1. You can associate one or more validation controls with each control that you want to validate.

    2. The validation is performed when the page form is submitted.

    3. You can specify programmatically whether validation should occur, which is useful if you want to provide a cancel button so that the user can exit without having to fill valid data in all of the fields.

    4. The validation controls automatically detect whether validation should be performed on the client side or the server side.

Note A client-side validation catches errors before a postback operation is complete. Therefore, if you have combinations of client-side and server-side validation controls on a single page, the server-side validation will be preempted if a client-side validation fails.

  • For the example Validation controls are: RequiredFieldValidator Control, RangeValidator Control, CompareValidator Control, RegularExpressionValidator Control, CustomValidator Control, ValidationSummary Control.


List Controls

  • List controls are special Web server controls that support binding to collections. You can use list controls to display rows of data in a customized, templated format. All list controls expose DataSource and DataMember properties, which are used to bind to collections.
    List controls can bind only to collections that support the IEnumerable, ICollection, or IListSource interfaces.

  • For example The List Controls are: ListBox Web Server Control, CheckBoxList Web Server Control, RadioButtonList Web Server Control, Repeater Web Server Control, DataList Web Server Control, DataGrid Web Server Control,DropDownList Web Server Control.

Rich Controls:

  • In addition to the preceding controls, the ASP.NET page framework provides a few, task-specific controls called rich controls. Rich controls are built with multiple HTML elements and contain rich functionality.

  • Examples of rich controls are the Calendar control and the AdRotator control.

Pr.Pg border                                              Next Pg