asp.net-mvc-2-validation
Regex regular expression coordinates
trying to sort out a regular expression for the following string: 51.4920302, -0.0850667 So far I have:@\"^[0-9]*,{-}[0-9]*$\" but it doesn\'t seem to be working.[详细]
2023-04-07 13:08 分类:问答Jquery Validation and MVC2 dumb question
I am trying to do some basic Jquery Validation in my MVC2 project and I keep getting this error... Microsoft JScript runtime error: Object doesn\'t support property or method \'validate\'[详细]
2023-03-30 22:15 分类:问答Redirect to an action from Application_BeginRequest in global.asax
In my web application I am validatingthe url from glabal.asax . I want to validate the url and need to redirect to an action if needed. I am using Application_BeginRequest to catch the reques开发者_如[详细]
2023-03-28 15:15 分类:问答Fire ASP.NET MVC2 client side validation from an anchor tag
I\'m changing an existing ASP.NET MVC2 application which uses the MicrosoftMvcValidation.js etc. for client side validation.[详细]
2023-03-11 01:57 分类:问答Zip Code validation using MVC2 in asp.net mvc
[Required(ErrorMessage = \"Please Enter AccountZip Code!\")] [RegularExpression(@\"/(^\\d{5}(-\\d{4})?$/\", ErrorMessage = \" Zip code must be 5 characters length\")][详细]
2023-03-06 07:21 分类:问答custom validation attribute not working on client, just on server
I am trying to implement custom attribute validation, similar to one demonstrated here in ScottGu\'s blog:[详细]
2023-03-05 06:29 分类:问答How to validate and post data from dynamic form in ASP.NET MVC 2
I have an existing ASP.NET MVC 2 application that I\'ve been asked to extend. I am adding a new feature to the site where I generate an employee assessment form based on a dynamic list of questions re[详细]
2023-03-05 02:22 分类:问答MVC validation with JQuery.Ajax
i am trying to validate a form in a JQuery model dialog that is dynamically loading a view generated from a jquery ajax call[详细]
2023-02-28 19:34 分类:问答ModelState.AddModelError - How can I add an error that isn't for a property?
I am checking my database in Create(FooViewModel fvm){...} to see if the fvm.prop1 and fvm.prop2 already exist in that combination; if so, I want to add an error to the modelstate, then return the who[详细]
2023-02-28 06:44 分类:问答Client Side Validation Not working for custom Attribute
Hi I have a custom Attribute public class NameAttribute : RegularExpressionAttribute { public NameAttribute() : base(\"abc*\") { }[详细]
2023-02-25 19:53 分类:问答