Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
18669 Points
2648 Posts
May 02, 2012 04:16 PM|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.
CodeHobo
All-Star
18669 Points
2648 Posts
Re: Use of ModelState
May 02, 2012 04:16 PM|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.
Blog | Twitter : @Hattan