what is state management,what is the purpose of it,how it
will be implemented in real time?

Answers were Sorted based on User's Feedback



what is state management,what is the purpose of it,how it will be implemented in real time?..

Answer / srikanth

As http is is state less protocol we need use state
management techniques whenever we need to maintain data.
suppose my application ananymous user can access.bt user
is already logged in i want show welcome userid.the user id
is from login page text box.so ineed to maitain that data
throughout the application .so i will use session/cookies
to matain data and i will retrieve in subsequent pages and
i will display.ok.

Is This Answer Correct ?    4 Yes 0 No

what is state management,what is the purpose of it,how it will be implemented in real time?..

Answer / sachin

There are 2 types State Management:

1. Client – Side State Management
This stores information on the client's computer by
embedding the information into a Web page, a uniform
resource locator(url), or a cookie. The techniques available
to store the state information at the client end are listed
down below:

a. View State – Asp.Net uses View State to track the values
in the Controls. You can add custom values to the view
state. It is used by the Asp.net page framework to
automatically save the values of the page and of each
control just prior to rendering to the page. When the page
is posted, one of the first tasks performed by page
processing is to restore view state.

b. Control State – If you create a custom control that
requires view state to work properly, you should use control
state to ensure other developers don’t break your control by
disabling view state.

c. Hidden fields – Like view state, hidden fields store data
in an HTML form without displaying it in the user's browser.
The data is available only when the form is processed.

d. Cookies – Cookies store a value in the user's browser
that the browser sends with every page request to the same
server. Cookies are the best way to store state data that
must be available for multiple Web pages on a web site.

e. Query Strings - Query strings store values in the URL
that are visible to the user. Use query strings when you
want a user to be able to e-mail or instant message state
data with a URL.

2. Server – Side State Management
a. Application State - Application State information is
available to all pages, regardless of which user requests a
page.

b. Session State – Session State information is available to
all pages opened by a user during a single visit.

Both application state and session state information is lost
when the application restarts. To persist user data between
application restarts, you can store it using profile
properties.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the different kinds of assemblies?

0 Answers  


Explain what is postback in asp. Net?

0 Answers  


Explain Authentication mechanism in dotnet

0 Answers   BirlaSoft,


Why is this service branded with windows livetm?

0 Answers  


Define msil.

0 Answers  






How would you get asp.net running in apache web servers?

0 Answers  


How do you design a website with multilingual support in ASP.NET ?

0 Answers   MCN Solutions,


what is cross page posting

3 Answers  


i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this....

3 Answers   Chaitanya, Crysalis, CTS, HCL, Sein Infotech, TCS,


and can u telme how to explain about our job profile if i have 3years of it experiance in dotnet domain and where to start and where to end , and what shoul i tel and what not(can i mention my education ,and family details,......)i am confusiong a lot. can i ask one with your permision, if u have question that u u went tcs interview as 3+years exp so he/she asked tel me about your profile how can u tel and where to stop. please help me as simple as possible i am facing lot in this..............plese can anyone help me i am awaiting for your reply.

1 Answers   TCS,


What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


How you can add an event handler?

0 Answers  


Categories