fluentvalidation
MVC HtmlHelper vs FluentValidation 3.1: Troubles getting ModelMetadata IsRequired
I created a HtmlHelper for Label that puts a star after the name of that Label if associated field is required:[详细]
2023-04-12 15:38 分类:问答fluentvalidation multiple submit buttons, different validation scenarios
I have an address search area on my form in my asp.net mvc3 application. the whole form is submitted using the main submit button and the address search is initiated using the search button.[详细]
2023-04-11 08:53 分类:问答How do I validate ViewModels across an ASP.NET MVC and a Windows Phone Project?
I want to create an application that has both an ASP.NET MVC 3 web client and a Windows Phone 7 phone client. The application data is stored in SQL Server and needs to be accessed from both clients.[详细]
2023-04-11 05:44 分类:问答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 分类:问答Fluent Validation on AJAX Form
I am creating an action/view in ASP.net MVC that I would like to POST using AJAX / jQuery. I am using Fluent Validation for the validation in my view models.[详细]
2023-04-10 01:55 分类:问答Fluentvalidation inject business object to validator
I am using fluentvalidatio开发者_如何学Pythonn and use structuremap to inject validators for actions in asp.net mvc3. I have problems to inject my business objects to validator objects. I get an error[详细]
2023-04-09 23:24 分类:问答FluentValidation pass parameter to WithMessage
I have the following code in validator: RuleFor(mb => mb.Amount). Must((mb, amount) => { var betLimit = _battlesService.GetBetLimit(mb.BattleId);[详细]
2023-04-05 17:34 分类:问答Override default ASP.NET MVC message in FluentValidation
I get the validation message \"The value xxx i开发者_StackOverflows not valid for yyy\". It happens when I post incorrect value for double type. I have no idea how to change it.Unfortunately this isn\[详细]
2023-04-05 05:25 分类:问答Redirect during validation
Sometimes inside FluentValidation validator I need to make redirect if state is incorrect (for example, I find that being deleted entity already does not exist and I redirect to the list of entities).[详细]
2023-03-31 09:34 分类:问答FluentValidation for select list values
How do I validate a select list for a value of 0? I have tried the following RuleFor(x => x.ProductId).Equal(0).WithMessage(required);[详细]
2023-03-30 23:34 分类:问答