View State in ASP.NET? (Walk through web designing and - TopicsExpress



          

View State in ASP.NET? (Walk through web designing and development using ASP.Net) What is View State? In order to maintain state between different Post Backs, ASP.net provides us with the mechanism to maintain state which is known as View State. Now let’s corroborate the same with an example. Suppose there is a web Form which consists of form fields like : First Name , Last Name , Address and the Submit button. Now when the user will click on submit button after filling the fields on the form, then the information will go to the web server. And suppose the error occurs in the process. Now if the view state is maintained, you will still be shown the form with filled data and if the view state is not maintained then the forms fields will get empty. So by having the view state mechanism, we are free from the botheration of losing the data. When a form is submitted in ASP .NET, the form reappears in the browser window together with all form values and this happens only because of the view state is by default enabled on the Web Forms. ( Join Our Group Computers & Programming - Live Training by Experts....... goo.gl/Q4q3x9 )
Posted on: Wed, 10 Dec 2014 14:39:43 +0000

Trending Topics



Recently Viewed Topics




© 2015