C# Clear Session

In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()? Session.Abandon() destroys the session and the Session_OnEnd event is triggered. Session.Clear() just removes all values (content) from the Object. The session with the same key is still alive. So, if you use Session.Abandon(), you lose that specific session and the user will get a new … Read more

What is the ‘page lifecycle’ of an ASP.NET WebForm? [closed]

I have this on my tack board. Helpful when your using Master pages. Content page PreInit event Master page controls Init event Content controls Init event Master page Init event Content page Init event Content page Load event Master page Load event Master page controls Load event Content page controls Load event Content page PreRender … Read more