If you were asked in an interview to describe the ASP.net lifecycle what would you answer?
What I have memorised so far is…
SILVERU or
Start
Initialization
Load
Validation
Postback Event Handling
Render
Unload
Would giving that list be enough of an answer?
I doubt it so if it is not enough then what would one have to say?
,
,
You also need to know the purpose of each step, and what you should place in each.
For example:
- When is view state values available on the way in?
- When is the last time view state values can be changed on the way out.
- Why is it a bad idea to hit a database in OnInit?
Actually good you asked this question, now I know to probe a bit deeper next time I interview someone 🙂