Friday, September 11, 2015

ASP.Net - State Management


I would classify these into 2 major categories based on my knowledge, Client side and Server side.

Client Side State Management

This can be managed in the following ways:

View State

Control State

Hidden Fields

Cookies

Query Strings

Server Side State Management

Application State

Session State

SQL Server State

Profile Properties

Custom State Management

ASP.Net - Page Life Cycle from start to end (Client to Server and Vice Versa)

Hi, when you search for ASP.net page life cycle, then you will find n number of articles. I would like to share my experience in this regard assuming you have hosted ASP.net website in IIS.

What happens when you type URL in any browser?
How the request goes to the right server where the website is hosted?
How again, response goes to the client from the server?

you will get such questions in mind but my experience says there are lot of things that happens between typing a URL and till you get the response back. We can list down 100s of questions.

To answer all of these, I will try to summarize this in following categories:

1) Client Process (Browser)
2) Internet or WIFI router
3) DNS Resolution/Server Detection
4) Website Detection with in the Web Server
5) Request/Response Process on the server
6) Rendering the response on the Client Browser

Okay, I will stop here. Let me try to explain each of the above category in detail.

Client Process (Browser)

There are 2 ways you try to hit the webserver, one is through typing the URL in the browser or you make a programming request in the code.

In any case, this is what happens: