what is view state and its use
Answer Posted / namrata
In simple words........
(1)if you are not using viewstate: When a form is submitted
in ASP,all form values are cleared(get lost). For
example,If you submit a web form with lots of details and
the server comes back with an error.You will have to go
back to the form and correct the detail. Then You click the
back button to that same form, you will find that all form
values are CLEARED and you will have to start all over
again!
(2)if you are using viewstate: When a form is submitted in
ASP .NET, the form reappears in the browser window together
with all form values. This is because ASP .NET maintains
your ViewState. The ViewState indicates the status of the
page with all the values of controls on it when submitted
to the server.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
What is asp.net with mvc? : Asp.Net MVC
Explain weak typing and strong typing.
Explain one critical mapping?
What is bson in web api?
What’s the difference between response .redirect and server.transfer?
What does asp stand for in asp.net?
What are server-side comments in ASP.NET?
What is ispostback method in asp.net?
Explain the difference between Repeater and Data list control in ASP.NET?
Can you explain architecture of your project ?
How should I destroy my objects in asp.net?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
What is microsoft windows sharepoint services?
How can we prepairing Interview
What are the 3 types of web?