Just spotted a couple more annoyances. They probably have workarounds, but I can't find any info on them as yet.
1. XML Processing Instructions seem to get removed from the markup. Namely, I want to include <?xml version="1.0" encoding="utf-8"?> at the top of all my pages, yet it never appears.
2. Multiple DataAnnotations and/or fields for Validation. Fails on the first, doesn't parse the rest. E.g. I put a RegularExpression and a StringLength validation attribute on one field, it will only ever report the error message for the first that failed, not both (if both fail) likewise for fields. If I have two fields that are validated, and both have invalid entries, only the first will report failure. (Only when using client validation it seems)
3. Some validation uses client, others don't. Some use "real time" validation (i.e. I don't need to click submit.. even if I want it to wait until I do!) and some don't use client validation at all and must be submitted. P.I.T.A.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.