Комментарии:
How to override te default validation for types ? When i use double and that I try to write letters in the input i get the default "the value "hdhsk" is not valid", but how can I override this one ? I finded a way with using ModelState.Clear() before using ModelState.AddErrorMessage(...) with simple one field forms but with bigger one it's not so easy...
ОтветитьJquery-validate and Jquery-validation-unobtrusive client-side libraries should be installed as well otherwise it won't work
ОтветитьI could not able to understand how nullable field resolve the int and string compatibility. Can someone please clear this ?Thanks
Ответитьhi sir
modelState.Isvalid is allways false how to resolve it
Thanks sir for the tutorial..i have a doubt when you post the data without filling all the required fields, error message is getting displayed that is fine but how does others fields remember their value since you are not passing the model back to the view...
ОтветитьIf I want apply the data annotation validations to be fired on the view load for the first time, how can it be achieved?
Ответитьi have one question sir, do we need validation attributes on the data (not the model) as well?
and can we create database-level validation as well?
Thank you so much been following this tutorial
Huge respect to you, sir!
Your explanations are excellent, way more better than anyone that I've heard.
After your tutorials I'd really understood what it was all about.
You've made a great job. Thanks a lot for that!
fucking awesome. keep up
ОтветитьHi Nitesh
One thing strange i noticed that total page error not showing "Total Page" text and even same thing for me
very good sir. waiting for next one.
Ответить