ASP.Net Interview Question and Answers

41. In which event are the controls fully loaded?
  Page_load event guarantees that all controls are fully loaded. Controls are also accessed.
In Page_Init events but you will see that viewstate is not fully loaded during this event.
 
Your Name Your Email-ID
Your Answer
42. What is the use of @ Register directives?
  @Register directive informs the compiler of any custom server control added to the page.
 
Lalitha,says May 13, 2014
Register directive is used to add the custom controls to page and if u add any reference like ajaxcontrol toolkit on your page then we have to use register directive.
Your Name Your Email-ID
Your Answer
43. Define RequiredFieldValidator?
  It checks whether the control have any value. It's used when you want the control should not be empty.
 
Your Name Your Email-ID
Your Answer
44. What are the different types of Session state management options available with ASP.NET?
  ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.
 
Your Name Your Email-ID
Your Answer
45. How can you display all validation messages in one control?
  The ValidationSummary control displays all validation messages in one control.
 
Your Name Your Email-ID
Your Answer