As developers we are quite often put in a situation of trying to find the right solution of a currently emerging problem. The immense information we have at hand (eyes) with internet might not always be useful, instead if you think about it, it can be in a way a bit wicked… Wicked so that it makes us copy and reuse ready-made fragments which leads to our tasks being finished as soon as possible. What I am trying to imply is that if we want to reuse our own knowledge, we should try to be aware of the fundamentals of the technologies we utilize.
Some of the basic, yet important aspects of ASP.NET state management a developer should have in mind:
- Try to see the whole picture of state management in web applications in general (cookies, hidden fields, parameterized addresses)
- Then above all – know a page lifecycle. It comes very handy when you wonder what is executed first, the button click event handler or the page load one :).
- What comes next is see what goodies we have in ASP.NET in particular – view state, application state, session state
- Last - you can check how to manipulate request/response objects in .NET
A presentation from a Sofia University course referring to the above matters: ASP.NET-State-Management.pdf (12.48 mb)
…and the demos for it: State-Management-Demos.rar (44.68 kb)