What r the page life cycle in asp.net page?

Answers were Sorted based on User's Feedback



What r the page life cycle in asp.net page?..

Answer / a.mustaq ahmed

Life Cycle of ASP.Net
Start-properties such as Request,Response,IsPostBack are
set.
Page Intialization
load
Validation
PostBack Event handling
Redering
Unload
For Detail Description go thru
http://msdn2.microsoft.com/en-us/library/ms178472.aspx

Is This Answer Correct ?    5 Yes 4 No

What r the page life cycle in asp.net page?..

Answer / pushpendra singh

The first stage in the page life cycle is initialization.
This is fired after the page's control tree has been
successfully created. All the controls that are statically
declared in the .aspx file will be initialized with the
default values. Controls can use this event to initialize
some of the settings that can be used throughout the
lifetime of the incoming web request.

Check this Link for detail

http://www.mindstick.com/Blog/48/ASP%20NET%20Page%20Life%
20Cycle

Is This Answer Correct ?    3 Yes 2 No

What r the page life cycle in asp.net page?..

Answer / raj kumar

instantiation
initialization
load view state
load post back data
page load
raise post back
save view state
rendering

Is This Answer Correct ?    1 Yes 0 No

What r the page life cycle in asp.net page?..

Answer / fvdfg

SADASDS

Is This Answer Correct ?    1 Yes 0 No

What r the page life cycle in asp.net page?..

Answer / gtr

Link For PageLifeCycle:

http://codeasp.net/articles/asp-net/20/aspnet-page-lifecycle

Is This Answer Correct ?    0 Yes 0 No

What r the page life cycle in asp.net page?..

Answer / dipal bhavsar

1. OnInit (Init) Initializes each child control of the current

2. LoadControlState: Loads the ControlState of the control.
To use this
method the control must call the
Page.RegisterRequiresControlState method in
the OnInit method of the control.

3. LoadViewState: Loads the ViewState of the control.

4. LoadPostData: Is defined on interface
IPostBackDataHandler. Controls that
implement this interface use this method to retrieve the
incoming form data and
update the control s properties accordingly.

5. Load (OnLoad): Allows actions that are common to every
request to be
placed here. Note that the control is stable at this time;
it has been
initialized and its state has been reconstructed.

6. RaisePostDataChangedEvent: Is defined on the interface
IPostBackData-Handler.
Controls that implement this interface use this event to
raise change events in
response to the Postback data changing between the current
Postback and the
previous Postback. For example if a TextBox has a
TextChanged event and
AutoPostback is turned off clicking a button causes the
Text-Changed event to
execute in this stage before handling the click event of the
button which is
raised in the next stage.

7. RaisePostbackEvent: Handles the client-side event that
caused the Postback
to occur

8. PreRender (OnPreRender): Allows last-minute changes to
the control. This
event takes place after all regular Post-back events have
taken place. This
event takes place before saving ViewState so any changes
made here are saved.

9. SaveControlState: Saves the current control state to
ViewState. After this
stage any changes to the control state are lost. To use this
method the
control must call the Page.RegisterRequiresControlState
method in the OnInit
method of the control.

10. SaveViewState: Saves the current data state of the
control to ViewState.
After this stage any changes to the control data are lost.

11. Render: Generates the client-side HTML Dynamic Hypertext
Markup Language
(DHTML) and script that are necessary to properly display
this control at the
browser. In this stage any changes to the control are not
persisted into
ViewState.

12. Dispose: Accepts cleanup code. Releases any unman-aged
resources in this
stage. Unmanaged resources are resources that are not
handled by the .NET common
language runtime such as file handles and database connections.

13. UnLoad

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

What does asax stand for?

0 Answers  


What is the need to give <compilation debug=true> command ?

3 Answers   Netsweeper,


Can you edit data in the Repeater control?

11 Answers   CAC, Creative,


Is string a value type or a reference type?

13 Answers  


What is web.config. How many web.config files can be allowed to use in an application ?

10 Answers   Accenture, BirlaSoft, Infosys, InterGraph, Satyam, Wipro,






What is use of Master Page in ASP.NET web pages?

0 Answers   Sans Pareil IT Services,


What is the difference between debug and release?

0 Answers  


How to configure a website without using IIS.

3 Answers   CGI,


In my code i have 3 tables,i have to insert 3 tables data using single insert query so that i wrote transations in a sp.but what my problem is,in those 3 tables i have to include my empId from another table.when i'm passing values im getting error at this EmpId. how can i solve this error to execute insert query? plesae tell me the solution...

1 Answers  


What is the default Orientation property in a Menu control?

0 Answers   Sans Pareil IT Services,


Types of session management in ASP.NET?

1 Answers   Microsoft,


When is validation done on the client? How does client-side validation improve the efficiency of an application?

1 Answers  


Categories