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

ASP.Net Interview Questions and Answers Part 6


51. Which event determines that all the controls are completely loaded into memory?

  • The Page_Load event determines that all the controls on the page are fully loaded.

  • You can also access the controls in the Page_Init event; however, the ViewState property does not load completely during this event.


52. What is the function of the CustomValidator control?

  • It provides the customize validation code to perform both client-side and server-side validation.


53. Which data type does the RangeValidator control support?

  • The data types supported by the RangeValidator control are Integer, Double, String, Currency, and Date.


54. Explain the AdRotator Control.

  • The AdRotator is an ASP.NET control that is used to provide advertisements to Web pages.

  • The AdRotator control associates with one or many advertisements, which randomly displays one by one at a time when the Web page is refreshed.

  • The AdRotator control advertisements are associated with links; therefore, when you click on an advertisement, it redirects you to other pages.

  • The AdRotator control is associated with a data source, which is normally an xml file or a database table. A data source contains all the information, such as advertisement graphics reference, link, and alternate text.

  • Therefore, when you use the AdRotator control, you should first create a data source and then associate it with the AdRotator control.


55. How can you check if all the validation controls on a Web page are valid and proper?

  • You can determine that all the validation controls on a Web page are properly working by writing code in the source file of the Web page using a scripting language, such as VBScript or JavaScript.

  • To do this task, you have to loop across validators collection of pages and check the IsValid property of each validation control on the Web page to check whether or not the validation test is successful.


56. Explain the validation controls. How many validation controls in ASP.NET 4.0?

  • Validation controls are responsible to validate the data of an input control. Whenever you provide any input to an application, it performs the validation and displays an error message to user, in case the validation fails.
    ASP.NET 4.0 contains the following six types of validation controls:

  • CompareValidator - Performs a comparison between the values contained in two controls.

  • CustomValidator - Writes your own method to perform extra validation.

  • RangeValidator- Checks value according to the range of value.

  • RegularExpressionValidator - Ensures that input is according to the specified pattern or not.

  • RequiredFieldValidator - Checks either a control is empty or not.

  • ValidationSummary - Displays a summary of all validation error in a central location.


57. What is the use of the <sessionState> tag in the web.config file?

  • The <sessionState> tag is used to configure the session state features.

  • To change the default timeout, which is 20 minutes, you have to add the following code snippet to the web.config file of an application: <sessionState timeout="40"/>


58. What events are fired when a page loads?

  • The following events fire when a page loads:

  • Init() - Fires when the page is initializing.

  • LoadViewState() - Fires when the view state is loading.

  • LoadPostData() - Fires when the postback data is processing.

  • Load() - Fires when the page is loading.

  • PreRender() - Fires at the brief moment before the page is displayed to the user as HTML.

  • Unload() - Fires when the page is destroying the instances of server controls.


59. Write three common properties of all validation controls.

  • Three common properties of validation controls are as follows:

  • ControlToValidate - Provides a control to validate

  • ErrorMessage - Displays an error message

  • IsValid - Specifies if the control's validation has succeeded or not

  • Text - Displays a text for validation control before validation


60. Can you set which type of comparison you want to perform by the CompareValidator control?

  • Yes, by setting the Operator property of the CompareValidator control.


61. What is AutoPostBack?

  • If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property of the control to True.


62. What is IIS? Why is it used?

  • Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Web applications.

  • It makes your computer to work as a Web server and provides the functionality to develop and deploy Web applications on the server.

  • IIS handles the request and response cycle on the Web server.

  • It also offers the services of SMTP and FrontPage server extensions.

  • The SMTP is used to send emails and use FrontPage server extensions to get the dynamic features of IIS, such as form handler.


Pr.Pg border                                             

Warning: include_once(bottompad.php) [function.include-once]: failed to open stream: No such file or directory in D:\INETPUB\VHOSTS\\httpdocs\asp-tutorials\asp-tutorials-asp-interview-part-6.php on line 310

Warning: include_once() [function.include]: Failed opening 'bottompad.php' for inclusion (include_path='.;C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\pear;./includes;./pear') in D:\INETPUB\VHOSTS\\httpdocs\asp-tutorials\asp-tutorials-asp-interview-part-6.php on line 310

Warning: include_once(rightpad.php) [function.include-once]: failed to open stream: No such file or directory in D:\INETPUB\VHOSTS\\httpdocs\asp-tutorials\asp-tutorials-asp-interview-part-6.php on line 316

Warning: include_once() [function.include]: Failed opening 'rightpad.php' for inclusion (include_path='.;C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\pear;./includes;./pear') in D:\INETPUB\VHOSTS\\httpdocs\asp-tutorials\asp-tutorials-asp-interview-part-6.php on line 316