ASP.NET - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

ASP.NET ViewState

ASP.NET ViewState

shape Description

Pages having web forms, which provide the ASP.NET ViewState property as a built-in structure to retain values automatically between multiple requests for the same page. It is maintained as a hidden field in page.

shape Example

ABC is an application, which uses user’s information that is used in the page and not necessarily part of any control, this information can be stored in the ViewState. ViewState property is mentioned in between the form tags.

shape Syntax

The syntax for ViewState is [html] <form> <input type="hidden" name="spViewState" value="yfdth12vg16686cgf25 +tshv15hg58ggdea45h="> </form> [/html]

shape Advantages