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 viewstate?

Answer Posted / nizath ali.u

Hi all this is Nizath Ali,

Viewstate is a client side state management.It
retains the page & control specific values between the
round trips(Post Back).
It always stores the values in one hidden form field
(control of ASP.NET) on the pge.

Brief:
Each webform page & controls on the page consists
of one "viewstate" property.
If we enable the viewstat property as true, it
automatically save the page & control specific values b/w
the round trips.
This viewstate is implemented with one hiddenform
field(control of ASP.NET) called "_VIEW STATE".That is the
viewstate stores the values in this hiddenform field
control.
This hidden form field is automatically created in
every webform page.
Now, what are the values stored in a viewstate
property,that are collected & formatted into a single
encoded string.
Then the encoded string is assigned to the "value"
property of the hiddenform field "_VIEW STATE".
Then it send to the client as apart of the webpage.
This kind of process is done by viewstate.

Drawback:
When we store the large values on the viewstae,it
makes the page slow down.
It stores the values on the "hiddenform field" so
no good security is their.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a reflection?

990


What is difference between asp state management and asp.net state management?

1094


What are the different types of cookies in asp.net?

1032


what are the Custom controls in asp.net?

1047


What is difference Between Authentication and authorization?

1157


What kind of programming language is ASP.NET?

1150


What are the differences between the response.write() and response.output.write()?

1033


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

984


What are triggers of an updatepanel?

973


Which is better union or union all?

1075


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

1001


Describe session handling in a webfarm?

1011


What is server infrastructure?

1127


How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know

1103


Why asp.net mvc is better than asp.net? : Asp.Net MVC

1153