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...

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...

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...

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...

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...

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...

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...

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...

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 ...

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"...

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...

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...

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...

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...

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 ...

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...

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.