view state in ASP.NET MVC Application

Posted by Shetty on Stack Overflow See other posts from Stack Overflow or by Shetty
Published on 2010-04-09T13:45:29Z Indexed on 2010/04/09 13:53 UTC
Read the original article Hit count: 263

Filed under:
|

Hi,

I have read that viewstate is not there in asp.net MVC application. I am doing model validation. Now if i have two text boxes on my page,and i am doing required filed validation for both of them in model. This validation is done on server side on click of a button. I will fill one text box and click on submit button. It does the validation and returns the result saying second field is required. At this time value of the first text box is retained. So can you tell me how this text box is retaining the value even after postback?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc