What is viewstate?
Answers were Sorted based on User's Feedback
Answer / jiten
View state is nothing but curent state of control and page
which can prisist during the postback
By using using u can store the state of control and page in
the hidden filed in cliend side or cline browser
it is store in HF form of encoded 64data
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sivaprasad
i)Viewstate is nothing but persisting the state of the
controls across postbacks.
ii)In the page lifecycle Init,Load,Prerender(this is the
last stage for viewstate,what data you want to save here we
need modify that and it will be saved).
iii)Maintaining the data with in the page level.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / chowdary
It maintain the controls data under postback
implementation.It is implemented based on hidden field
concept.Generally viewstate is disabled for Password type
textboxs.
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / giri
ViewState is (asp.net object) mechanism by which page state
(information)(or values of the current page before postback)
is maintained between page post backs untill the page is running
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference Between ReadOnly and Constant Variable in compile time and Run Time.
3 Answers Phoenix Technologies, Quadrant,
What are web server controls in asp.net?
Is asp.net different from asp? If yes, explain how?
what are the web form events available in asp.net?
extensibility in asp.net2.0
What are session variables?
How we generate the BARCODE in ASP.Net using c# ! in library management systen for books .
Where do the cookie state and session state information be stored?
How to set the pane area to transparent of a scrollPane component.?
What is full trust in asp.net?
Can you dynamically assign a Master Page?
How do u deploy ur project?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)