asp.net-mvc-validation
ASP.net MVC Validation Hook
I have the following view in ASP.net MVC 3: @model Models.CreateProjectViewModel <script type=\"text/javascript\" src=\"@Url.Content(\"~/Scripts/jquery.validate.min.js\")\"></script>[详细]
2023-04-10 21:28 分类:问答DataType attribute doesn't work
In ASP.NET MVC 3 web application I have a viewmodel with properties which marked with DataType attributes, but they don\'t do actual validation on cliant side, and on server side, Why?[详细]
2023-03-27 22:32 分类:问答Can Castle Validators work with DataAnnotations attributes?
Is there a way of making DataAnnotations attributes such as Required to work with Castle Validators? I know Castle has its own attributes - but I am wanting to use the same attrib开发者_StackOverflow[详细]
2023-03-27 04:10 分类:问答MVC validator for custom object
I have some model for my View and custom object as a property there, like this: class SomeModel { public object Data { get; set; }[详细]
2023-03-16 22:48 分类:问答How to return an error to ValidationSummry in MVC 3
I have an idea which I dont know how to implement. In MVC 3 controller I have an if statement, and I want t开发者_开发百科he controller to return an error message if the if statement fails. And I have[详细]
2023-03-14 01:52 分类:问答Manually invoking ModelState validation
I\'m using ASP.NET MVC 3 code-first and I have added validation data annotations to my models.Here\'s an example model:[详细]
2023-03-13 16:30 分类:问答Validation of List<int> property
I am using datannotations and the server/client side validation stuff in ASP.NET MVC 2. Everything works fine if a class has properties such as:[详细]
2023-03-08 17:33 分类:问答DRY Remote Validation in ASP.NET MVC 3
I\'ve read David Hayden\'s great post on MVC 3 Remote validation. However there is presented what you should do to enable remote (javascript) validation. If the user has javascript disabled the post[详细]
2023-02-28 14:00 分类:问答How to validate that user specified correct Date in ASP.NET MVC?
Is there any simple way to client (and server) side validate Date ? My idea is to have 3 input fields for day, month and year. I\'m using anotated model and AJAX validation scripts to client side val[详细]
2023-02-18 02:26 分类:问答asp.net Validation on DropDownList box
I have a dropdownlist (cboViewAlbums) which has displays album values. The first item is a Please select an album.... I am trying to use validation which when lb_create_album linkButton is clicked th[详细]
2023-02-13 04:12 分类:问答