Home | Submit an interview question | Filter by category | Filter by job function | Filter by company
 
Member Information
User Id
Password
 
Forgot Password
Technology Category
.NET (1202)
Languages (103)
Database (146)
Operating System (48)
Reporting (5)
Third-Party Tools (2)
Testing (91)
OOP (75)
Web Development (40)
Design Patterns (89)
General (9)
Networking (88)
Hardware (63)
Brain Exercise (2)
Others (37)
 Our Network
.NET Heaven
C# Corner
Interview Corner
Longhorn Corner
Mindcracker
VB.NET Heaven
Home » .NET » .NET
What are a view state and how the state is maintained? What are different state management options available in ASP.Net?
Posted by Jul 20, 2006
Viewed : 5274 times
Major Category : .NET
Minor Category : ASP.NET
Total Replies : 3
Become a Sponsor
 EDITORIAL ANSWER  
No Reply Yet
 ANSWERS BY USERS  

Mar 27, 2007

VIEW STATE IS NOTHING BUT MAINTAINING CONTROLS DATA UNDER POSTBACK IMPLEMENTATION

WE CAN STORE THE VIEWSTATE DATA WITHIN HIDDEN FIELD CONTROL OF HTML.

WITH USING HIDDENFIELD THE DATA STORED IN STATEBAG OBJECT .

SERVER MAINTAINING THE CLIENTS INFORMATION DURING NAVIGATION OF ONE PAGE TO ANOTHER IS KNOWN AS STATEMANAGAMENT

WE CAN ACHIEVE THIS WITH PARTICULAR CONCEPTS

1.COOKIES

2.SESSIONS

3.VIEWSTATE

4.APPLICATION

5.CACHE

6.QUERYSTRING

 


Jul 20, 2006

Use the View State property to save data in a hidden field on a page. Because ViewState stores data on the page, it is limited to items that can be serialized. If you want to store more complex items in View State, you must convert the items to and from a string.

ASP.NET provides the following ways to retain variables between requests:

  • Context.Handler object Use this object to retrieve public members of one Web form’s class from a subsequently displayed Web form.
  • Query strings Use these strings to pass information between requests and responses as part of the Web address. Query strings are visible to the user, so they should not contain secure information such as passwords.
  • Cookies Use cookies to store small amounts of information on a client. Clients might refuse cookies, so your code has to anticipate that possibility.
  • View state ASP.NET stores items added to a page’s ViewState property as hidden fields on the page.
  • Session state Use Session state variables to store items that you want keep local to the current session (single user).
  • Application state Use Application state variables to store items that you want be available to all users of the application.
  
1

 

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Advertise with us
Current Version: 2.2009.3.2
 © 1999 - 2009  Mindcracker LLC. All Rights Reserved