Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is application and session in asp.net?

0 Answers  


How to write test case (Unit test plan)

1 Answers   Syntel,


If(dropdownlist1.selectedIndexChanged==true) { //code } else { //code } I am getting error in If condition, so can u pls give me a solution.

4 Answers  


how to get modified rows from Dataset

1 Answers   CGI,


difference between Trace and Debug ?

9 Answers   Accenture, Addlux, Microsoft,


how we deploy the asp.net 2.0 application

2 Answers   Logistics,


In the Repeater control which way you can edit?

0 Answers   Siebel,


What is Assembly?

3 Answers   Inspira Technologies,


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

0 Answers  


what is silverlight and what is the purpose of silverlight?

2 Answers   Cognizant, CTS,


Have u used webcontrols?Tell me something about these?

2 Answers   Microsoft,


Why cyclomatic complexity is important?

0 Answers  


Categories