News for hackers. Stuff that matters.
Re:A todo list for new ASP.NET Core projects by tuespetre on Thursday February 08, 2018 @09:27AM (#16332180)
I don't understand the item regarding validation. Whenever I actually care about validation, I am needing to use the 'IsValid' check to make some decisions. What does the attribute gain me?
Re:A todo list for new ASP.NET Core projects by hanoz on Thursday February 08, 2018 @09:35AM (#16332223)
You might have site where all the validation is supposed to be done on the client side, and the only way an invalid model reaches the server is if somebody's up to mischief.
Re:A todo list for new ASP.NET Core projects by DougWebb on Thursday February 08, 2018 @10:05AM (#16332427)
up to mischief could mean broken or disabled javascript. As-in, maybe something else on your page (third-party ads) loads javascript with an error that stops execution, but your form is still submitable because you've coded it properly as a standard html5 form.
Re:A todo list for new ASP.NET Core projects by tuespetre on Thursday February 08, 2018 @09:46AM (#16332300)
Thank you. That makes sense, although upon first reading I was worried by 'validation supposed to be done on the client side' ;)