Click here to Skip to main content
15,896,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
I am new in ASP.net

Kindly help me view state management with the help of code..

I will be very very thankful to you for this help.
Posted

When a form is submitted in 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...

Suppose their is a case when u are givin an online exam and suddenly lights go off for a few seconds and come back and ur asked to give all the questions again just because the site did not maintain the state of ur application

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. ASP.NET by default maintains state of ur application. and Even if u write

EnableViewState="false" in the page derictive then also ASP.NET will maintain the state of ur application u can't do anything about it...

DO rate my answer once u find it useful

Thanks & Regards
Radix :rose:
 
Share this answer
 
There is a very good article in CP itself.

Beginner's Guide To View State

Hope it helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900