Sunday, May 25, 2014

Page Life Cycle Interview Questions on ASP.Net(8)

Page Life Cycle Interview Questions on ASP.Net(8)




1.List the Events of ASP.Net Page Life Cycle?
A.PreInit,Init,InitComplete,PreLoad,Load,Controlevents,LoadComplete,PreRender,PreRenderComplete,SaveStateComplete,Render,Unload.

2.Name the event  that which all the controls are fully loaded?

A. Page Load event guarantees that all controls are fully loaded.

3.What is the use of Page_UnLoad event?

A. It is used to dispose the initialized values such as database connections or file closings etc…

4.Name the event that doesnot raise in the page life cycle?

A.


5. Elaborate the usage of “IsPostBack” property?

A.  IsPostBack property belongs to page object it is used to know to check the status of the page i.e. page is postbacked or not.

6.What is the initial value of “IsPostBack” property?

A. False

7.For What value we need to check for IsPostBack property of an web page?

A. if(IsPostBack==true)
{
---;
}.
For true value

8.what is the control for which by default post back is enabled(true)?

A. Button because it has default event i.e Click event.

0 comments:

Post a Comment