unobtrusive-validation Questions
3
Solved
I'm using MVC3 with unobtrusive validation. I have a field that the user is expected to fill with some data and then press a "search" button. If search has never been pressed or the user has change...
Karb asked 14/3, 2012 at 18:33
4
Solved
Given the following viewmodel:
public class SomeViewModel
{
public bool IsA { get; set; }
public bool IsB { get; set; }
public bool IsC { get; set; }
//... other properties
}
I wish to crea...
Goingson asked 30/8, 2011 at 18:6
3
I am trying to work around the fact that when they wrote asp.net MVC 3 they forgot to include code to add the unobtrusive validation attributes to select lists and their "fix" for this is to includ...
Caliche asked 23/11, 2011 at 9:37
5
Solved
I've been pulling my hair out trying to figure out why ValidationController actions are not being triggered.
I have settings enabled in project-wide web.config:
<add key="ClientValidationEnabl...
Handal asked 26/12, 2012 at 19:18
6
Solved
By default, the jQuery validation plugin is attaching validation handlers for focusin, focusout and keyup events.
1 of our validations is making a (synchronous) request to retrieve some data. I wan...
Granophyre asked 30/1, 2014 at 7:34
4
Solved
I have a form and unobtrusive validations are enabled. By default in submit method client side validation gets triggered and (if you have any errors) the form looks like this:
The validation hap...
Smashandgrab asked 24/5, 2011 at 16:37
2
Solved
I have set up model validation for my form but validation doesn't seem to work at all. I don't suppose anybody can help. I've tried using the below work-around but that keeps pulling up an 'undefin...
Magnolia asked 24/1, 2013 at 14:30
4
Solved
I have the following code in my Model class:
[Range(1, 100)]
public decimal Price { get; set; }
After recent upgrade (I assume) of jquery.validate to 1.11.0, I am getting an error even if I en...
Zackaryzacks asked 15/2, 2013 at 6:32
3
Solved
I am using ASP.NET 5 MVC RC1
The jquery validation plugins that my ASP.NET MVC uses is the standard jquery.validate.js that a default ASP.NET 5 template project uses.
/*!
* jQuery Validation Pl...
Inamorato asked 12/2, 2016 at 11:59
6
Solved
My forms have inputs with default helper text that guides the user on what to enter (rather than using labels). This makes validation tricky because the input value is never null.
How can I exten...
Haim asked 20/4, 2011 at 21:13
4
Solved
I have a view model that has year/month/day properties for someone's date of birth. All of these fields are required. Right now, if someone doesn't enter anything for the date of birth they get 3 s...
Variolite asked 10/9, 2013 at 17:35
4
I have a page built in ASP.NET MVC 4 that uses the jquery.validate.unobtrusive library for client side validation. There is an input that needs to be within a range of numbers. However, this range ...
Cenac asked 8/7, 2014 at 22:50
6
Solved
I have layout page with all scripts as shown below.
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Site</title>
<link href="~/favicon.ico" rel="shortcut icon"...
Logarithmic asked 21/5, 2013 at 19:35
4
Solved
In the page I'm developing I have a "Email" field and "ConfirmEmail" field. And the requirement is to have a case insensitive comparision.
I could create a custom attribute and extend the behaviou...
Miscount asked 2/4, 2012 at 18:11
1
Solved
I have googeld about this issue and I have checked my web.config, bundleconfig and my layout which look like this:
web.config:
<appSettings>
<add key="webpages:Version" value="3.0.0.0" ...
Finial asked 13/10, 2015 at 16:15
1
I've always used the following mask input plugin in my ASP.Net applications:
http://digitalbush.com/projects/masked-input-plugin/
Unfortunately, this doesn't play well with MVC unobtrusive valida...
Bibliotaph asked 10/7, 2012 at 13:38
1
Solved
I have JQuery popups and i want to put required field validations on it and for this i have set required attributes in model and have also set the validation message for them in the view but that r...
Professional asked 2/8, 2015 at 5:45
7
Solved
I created a new ASP.Net MVC 4 project using the template in Visual Studio 2012. After upgrading to jQuery 1.9, the login functionality breaks. Specifically, I get the error
0x800a138f - JavaScri...
Smoko asked 2/2, 2013 at 5:43
3
Solved
I'm using jQuery Validation Plugin, v1.11.0,2/4/2013 with jquery.validate.unobtrusive.js.
I guess I face a bug of Range validation for numeric field: Validation compares String value with String o...
Limpid asked 25/3, 2013 at 7:26
3
Solved
I have created a custom validation attribute which works server-side (after form is posted) but I cannot get the validation to work client-side.
The custom attribute is:
public class ReasonableA...
Trilly asked 25/2, 2014 at 2:26
3
I just want to accept Date in ddMMyyyy format while submiting. But its gives an error like
The field FromDate must be a date.
But, When I put date in MMddyyyy it accepts pkkttrfg roperly.
M...
Keyes asked 13/2, 2015 at 11:57
1
Solved
I need to add an handle to any circumstance where a form validation fails.
I've read this, that explains that I have to add a handler as follows:
$('form').bind('invalid-form.validate', function ...
Beebe asked 25/4, 2015 at 23:57
2
Solved
EDIT - We're using MVC4 Dev Preview....
I'm implementing an edit page for a FishingTrip class. FishingTrip contains a child collection of simple Crew objects (i.e. FishingTripID, CrewID, CrewPosit...
Intrados asked 20/10, 2011 at 8:55
4
Solved
I have a model to validate and the problem is the date of birth field.
It must be composed of 3 dropdowns (day, month, year).
<div id="dob-editor-field" class="model-field-editor">
@Html.La...
Bushing asked 13/7, 2012 at 17:48
4
Solved
I am using DataAnnotations to validate my ViewModel on client side with jquery.validate.unobtrusive and on server side in ASP.NET MVC application.
Not so long time ago, I figured out that I can wr...
Auroreaurous asked 22/1, 2015 at 13:37
© 2022 - 2024 — McMap. All rights reserved.