Define ASP.Net page life cycle in brief ? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
Define ASP.Net page life cycle in brief ?

1. OnInit (Init): Initializes each child control.

2. LoadControlState: Loaded 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: Loaded the ViewState of the control.

4. LoadPostData: Controls that implement this interface use this method to retrieve the incoming form data and update the control According to there properties.

5. Load (OnLoad): Allows actions that are common to every request to be placed here. 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.

7. RaisePostbackEvent: Handling the clien side event caused Postback to occur

8. PreRender (OnPreRender): Allows last-minute changes to the control. This event takes place before saving ViewState so any changes made here are saved.

9. SaveControlState: Saves the current control state to ViewState. 

10. SaveViewState: Saves the current data state of the control to ViewState.

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


More interview questions and answers

What is Globalization ?

What happens when you make changes to an application\'s Web.config file?

What are the steps to host a web application on a web server?

What is the difference between Session Cookies and Persistent Cookies?

What are the advantages and disadvantage of Using Cookies?

Describe the accessibility modifier “protected internal”.

What does the term immutable mean?

Can you store multiple data types in System.Array?

What’s the .NET collection class that allows an element to be accessed using a unique key?

.What class is underneath the SortedList class?

Explain the three services model commonly know as a three-tier application?

Explain Namespace ?

Can you allow a class to be inherited, but prevent the method from being over-ridden?

.What’s an abstract class?

.When do you absolutely have to declare a class as abstract?

What is an interface class?

What happens if you inherit multiple interfaces and they have conflicting method names?

What’s the difference between an interface and abstract class?

What is the difference between a Struct and a Class?

What’s the implicit name of the parameter that gets passed into the set method/property of a class?

What does the keyword “virtual” declare for a method or property?

Can you declare an override method to be static if the original method is not static?

What are the different ways a method can be overloaded?

What’s a delegate?

What’s a multicast delegate?

What’s the implicit name of the parameter that gets passed into the class’ set method?

How do you inherit from a class in C#?

When you inherit a protected class-level variable, who is it available to?

Describe the accessibility modifier protected internal.?

. What does the keyword virtual mean in the method definition?

Can you declare the override method static while the original method is non-static?

Can you override private virtual methods?

What is CLR?

What’s an interface class?

What is Shallow Copy and Deep Copy in .NET?

Explain Web Services?

What is Postback in Asp.net?

Explain the differences between server-side and client-side code in Asp.Net?

What is the ASP.NET validation controls?

Is it possible to create custom events for an object

Is it possible for objects that don't have an interface to support events?

Is there an easy way to get help about an object's member

Describe Paging in ASP.NET?

what's Param?

What is the difference between Server.Transfer and Response.Redirect?

What is Data Binding?

Do Web controls support Cascading Style Sheets?

What classes are needed to send e-mail from an ASP.NET application?

What is ViewState?

What's OUT Keyword?

Define ASP.Net page life cycle in brief ?

What do you mean by three-tier architecture?

What's REF Keyword?

What's Delegate?

Write the code that creates a cookie containing the user name R4R and the current date to the user computer. Set the cookie to remain on the user computer for 30 days?

Wat's feature of delegate?

Describe the property of cookie in Asp.Net ?

Wat's Property?

Differences between Web and Windows applications?

What is the main difference between the Button server control and the Button HTML control?

What is the difference between web.config and Machine.config files?

What is Method Overloading ?

How do you require authentication using the Web.config file?

What is Partial types?

What is Aliases?

What is Static classes?

What is Methods?

How to create Multivalued Cookie ?

Define Error Events in Asp.Net?

Why the exception handling is important for an application?

What is indexer?

Explain the aim of using EnableViewState property?

What are the two levels of variable supported by Asp.net?

Difference between Session object and Profile object in ASP.NET?

What is Event?

What is the Default Expiration Period For Session and Cookies,and maximum size of viewstate?

What is the use of Global.asax File in ASP.NET Application ?

Explain exception handling in C#?

What is the Purpose of System.Collections.Generic ?

What is GAC and name of the utility used to add an assembly into the GAC ?

Explain Exception handling

Whether we can use vbscript and javascript combination for validation?

What are the different states in ASP.NET?

Define State managment?

What is Authentication and Authorization ?

Discribe Client Side State Management?

Describe Server Side State Management ?

What is SessionID?

What is the Session Identifier?

Advantages of using Session State?

Disadvantages of using Session State ?

What are the Session State Modes? Define each Session State mode supported by ASP.NET.

What is a Master Page in Asp.Net?

What are the 2 important parts of a master page and file extension for a Master Page?

How do you identify a Master Page and how do you bind a Content Page to a Master Page?

Can you dynaimically assign a Master Page?

From the content page code how can you reference a control on the master page?

What is Globalization?

What are the 3 different ways to globalize web applications?

What are the steps to follow to get user\'s culture at run time?

R4R provides free online tutolrails ,examples for Freshers and experts .We cover core java, tutorials, spring, Hibernate, python, struts, struts 2,c language, spring boot,PHP,MYSQL,C#,ASP.NET,WPF,WCF,Photoshop , JSP, programming, example, Interview questions and answer