Is It Possible For Whole Page is Saved In View State?
What Is View State?
Answer Posted / ranjith
When a form is submitted in classic ASP, all form values are
cleared. Suppose you have submitted a form with a lot of
information and the server comes back with an error. You
will have to go back to the form and correct the
information. You click the back button, and what
happens.......ALL form values are CLEARED, and you will have
to start all over again! The site did not maintain your
ViewState.
When a form is submitted in ASP .NET, the form reappears in
the browser window together with all form values. How come?
This is because ASP .NET maintains your ViewState. The
ViewState indicates the status of the page when submitted to
the server. The status is defined through a hidden field
placed on each page with a <form runat="server"> control.
The source could look something like this:
<form name="_ctl0" method="post" action="page.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE"
value="dDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4Q=" />
.....some code
</form>
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain difference betn dataset and recordset?
What is different authentication mechanisms used in ASP.NET?
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
Can we set master page as a start page?
Which two new properties are added in asp.net 4.0 page class?
How can you make sure that web api returns json data only?
What is asp.net introduction?
What kind of data we can store in viewstate?
Can asp.net work on an nt server?
Where the viewstate is stored after the page postback?
What’s the use of “GLOBAL.ASAX” file?
How do you implement postback with a text box?
How to you can limit Access to Web API to Specific HTTP Verb?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
What are type/key pairs in client script registration?