ASP.NET MVC 2 - anyone using?

Not sure how rhinomocks would help tbh. I'm not looking to mock anything, just get it to behave as it does when used "for real" :)

I prefer Moq to Rhino anyway. Rhino have allowed their API to become far too polluted :)

Plus, the guy behind Rhino, whilst being a genius, is a socially inept ballsack!
 
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.

:)
 
Last edited:
Posted about the XML PI on asp.net forums, but alas.. their forum is moderated and now I have to wait until a moderator OKs it. :(
 
Back
Top Bottom