mardi 14 juillet 2015

Can we use ModeState.IsValid in view(.cshtml page) in mvc?

I am trying to show/hide a div on the basis of "ModelState.IsValid" in my view (.cshtml page) in mvc. Is it possible to use ModelState.IsValid in .cshtml? Please send me some link or any idea? Or should I use the other kind of logic like ViewBag?

Aucun commentaire:

Enregistrer un commentaire