Hi Jon,
VS2013,
VB
Using the Order class has worked fine for Data Annotations & Validation.
But on the Create View I'm getting an odd behavior I can't figure out, and it seems to be related to the following code at the bottom of the View code:
Code:
@Section Scripts
@Scripts.Render("~/bundles/jqueryval")
End Section
With this code 'in play', when the email is incorrect I get in red text:
"The Email field is not a valid e-mail address. "
The validation is client side since the error shows or goes away by simply typing in the email field without clicking the Create button.
With the code above 'commented out', I get multiple and odd results. Sometimes there is a box with an arrow pointing to the email field, and the box says:
"You must enter a valid email address"
along with the red text message mentioned above. And the combination depends on the specific type of error in the email entered.
Why are there 2 error message styles and how do I fix that? Again the 'dueling' error messages are with the code NOT in play.
Thanks.
Best Regards,
Alan