Last post May 02, 2012 04:16 PM by CodeHobo
May 02, 2012 09:55 AM|pavankumarmcafresher|LINK
Can any one tell me, what is the exact use of ModelState class.
I saw it in some blogs during logon app creation in MVC 3..
May 02, 2012 10:50 AM|ignatandrei|LINK
Saving the state of the application - for example , if you put into a textbox that corresponds to an int the value "aaa", "aaa" should be persisted somewhere.
May 02, 2012 11:13 AM|pavankumarmcafresher|LINK
I got your point and thanks for reply...
May 02, 2012 04:16 PM|CodeHobo|LINK
Another thing you can do with ModelState is check the validity of the model. If there are any validation errors, they will be added to the ModelState and ModelState.IsValid will be set to false. For it's useful for validation also.