C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Definitions » General »

View State


Posted Date: 25 Sep 2009    Resource Type: Definitions    Category: General
Author: satyaMember Level: Diamond    
Rating: 1 out of 5Points: 3



View State



The ViewState property is used to retain values between multiple requests for the same page.

When the page is posted, one of the first tasks performed by page processing is to restore view state.

We use the ViewState property to save values independent of control state between round trips to the server.

The ViewState property is stored in the page in a hidden form field.

Example:

//saving a state
ViewState["month"] = "September";

//reading a state
string strMonth = ViewState["month"].ToString();



Responses

Author: Varma Suresh    01 Oct 2009Member Level: Gold   Points : 0
it is good .keep contributing

varma


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
View State  .  Asp.net  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Query string
Previous Resource: What is data structure?
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use