Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




ASP.NET interview questions: - Can you explain how ASP.NET application life cycle works?

Note :- When any one asks for page life the SILVER answer is  appropriate , but when interviewer is asking for application life cycle , two more things come in to picture handlers and modules.


Below is how ASP.NET events fire.
  • First the HttpModule events like BeginRequest , AuthenticateRequest fires.
  • Then the HttpHandlers fires if the file extension match of the request page name.
  • Finally Page events fire i.e. init, load, validate , event and render.

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 view state is not fully loaded during this event.

How can we identify that the Page is Post Back?

Page object has an “IsPostBack” property, which can be checked to know t the page is posted back.

What is the use of @ Register directives?

@Register directive informs the compiler of any custom server control added to the page.

What is the use of Smart Navigation property?

It’s a feature provided by ASP.NET to prevent flickering and redrawing when the page is posted back.

Also click and see the following ASP.NET interview questions video on ASP.NET application and Page life cycle.





Helpful Website Url
http://www.questpond.com/
Share this article   |    Print    |    Article read by 5039 times
Author:
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small E-learning company in India. We are very much active in making training videos , writing books and corporate trainings. Do visit my site http://www.questpond.com for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers
Related Articles:
Related Interview Questions: