Skip to main content

ASP.NET Life Cycle Events - In which event IsPostBack property checked ? Interview Question/Answer

In which event IsPostBack property checked ?

Ans : PreInit. 

Explanation : 

In this event IsPostBack property validated. If it is true, then value are restored in controls from the ViewState.

If it is false, then value are overwritten by next event.

Also in this PreInit, It will create dynamic controls.

It sets Master Page dynamically & theme property.





Comments

Popular posts from this blog

OOP Concept C# - Encapsulation Access modifiers - Interview Question / Answers

What is Encapsulation ?                Encapsulation is the process of hiding the data. It focus on implementation of an object.  Difference between abstraction and encapsulation ?               Abstraction allows making relevant information visible and encapsulation provides implementing desired level of abstraction.

C# OOPS INTERVIEW QUESTIONS / ANSWER

1. What is C# ? 2. Questions on abstraction ? 3. Questions on encapsulation ? 4. Question on polymorphism ? 5. Questions on Inheritance ? 6. Difference between struct and class ? 7. Difference between abstract class & Interface ? 8. what is enum in c# ? 9. Difference between continue and break ? 10. Difference between cosntant and read only ? 11.