Client-side custom data annotation validation
I’ve create a custom data annotation to do some validation on my view model. The problem is that it doesn’t validate on the client-side. Here’s my model:
I’ve create a custom data annotation to do some validation on my view model. The problem is that it doesn’t validate on the client-side. Here’s my model:
I am naive to Asp.Net MVC.
How can I put a span element inside ActionLink BUT NOT WITH URL.ACTION?
So I’ve started using the <%: Url.Content(~/site/blah) %> syntax as standard for CSS, JScript and Image urls – solves a lot of issues indeed; and it’s at least consistent beween WebForms and Razor pages (not all of my devs will be doing Razor, and yet they will still be working on this platform I’ve produced).
I’d like to save an uploaded file to a physical path by the method HttpPostedFileBase.SaveAs().
I want using external logins so I installed Oauth by package manager:
I have a table that has a column with Yes/No as possible values
I want to know about the difference between @Scripts.Render(“~/something.js”) and <script type=”text/javascript” src=”/something.js”></script>. Yes, I’ve already searched about this subject, but with no success. I think if @Scripts.Render exists isn’t by chance. More details What I’m meaning is: when I should use one or other and why. Answers: Thank you for visiting the Q&A section … Read more
How can I have a repeater control with multiple templates where the template chosen is based upon the type of the item?
I have to decide about a new big business application we will develop in the coming years, the question is if we should start using MVC 3 or web forms.