Questions tagged [remote-validation]

Remote Validation is the ability to call a custom server-side validation method via the client-side.

166 questions
0
votes
0 answers

Custom remote validation attribute throwing error at server side in ASP.NET MVC

I am developing an ASP.NET MVC Web Application. In my project I am doing remote validation using data annotation to my view model class. I know default remote attribute does not support server validation. I can validate it again in action method.…
0
votes
1 answer

Remote Attribute Not Work and Cause The Others Not Work Too in Windows Server 2012

Model public class UserEntityViewModel { [Required(ErrorMessageResourceType = typeof(DCC.Main.Resources.Resources), ErrorMessageResourceName = "RequiredErrorMessage")] [Display(ResourceType = typeof(DCC.Main.Resources.Resources), Name =…
0
votes
0 answers

Remote validation asp.net and mvc

I am trying to get my double validation working and I seriously have no clue why it does not work. My model is following: [Required] [Remote("CheckForHourRange", "Bookings")] public double ReservationLength { get; set; } So far so good…
Egert Aia
  • 459
  • 2
  • 12
0
votes
1 answer

Parsley Validation not waiting for Remote Validation AsyncValidate to finish

I have a form and I'm trying to do parsley remote validation on one of the fields, however, on form validation, the form submits before it waits for a response from the remote function (via asyncValidate()). Thus, even when the field is invalid,…
Faybian
  • 373
  • 2
  • 7
  • 15
0
votes
1 answer

ASP.NET MVC: Remote Validation not fired

Having problem calling the remote validation. I have everything setting properly with the matching property name with argument in the remoting methods in my controller. Only thing I suspect was the model which I located in a separate project. This…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
0 answers

jQuery.steps and remote validation

I am using the jQuery.steps Plugin and do have now some problems regarding the validation, I have a field "username" which has to be validated (if the username already exists) before continuing to the next step, let me show you some…
Crasher
  • 113
  • 2
  • 12
0
votes
2 answers

No element found Firefox Console :MVC

I am developing a MVC application with Remote validations. I am getting a No element found error in the browser console. I was getting so many Jquery not found errors that I could manage to remove by rendering the required Scripts. Now I have only…
Vini
  • 1,978
  • 8
  • 40
  • 82
0
votes
1 answer

MVC Remote validation not working

I have a few remote validations to make for client side validation. Two of them are almost identical, but one works and the other doesn't, the break point never gets hit. Working One: View: @Html.EditorFor(model => model.ClassNumber, new { @id =…
C-Pfef
  • 129
  • 1
  • 4
  • 12
0
votes
1 answer

Remote Validation in mvc not working

I am trying to use Remote validation in my application to check already exists record. Here: [Required(ErrorMessage = "*")] public Nullable fk_Store_ID { get; set; } [System.Web.Mvc.Remote("doesGround", "User", HttpMethod = "POST",…
Ubiquitous Developers
  • 3,637
  • 6
  • 33
  • 78
0
votes
1 answer

Trying to force remote validation

Using remote validation to compare a start and end time from a model. All worked OK but found a little bug. If start time was incorrectly set to say 11am, end time was entered to be 10am, end time was flag error that it is before the start time. So…
JQuery
  • 889
  • 3
  • 13
  • 35
0
votes
1 answer

Remote validation doesn't work when property to validate is inside a modal Bootstrap

I'm using ASP.NET MVC3. When an user create an account, I need the chosen nickname be unique, so I use the Remote DataAnnotation like this : public class UserModel { [Required] [Remote("CheckNickname", "Validation", ErrorMessage = "This…
0
votes
1 answer

Asynchronous Multifield Validation operating on a state 'just before' what I want to validate

For a project I'm working on, I've got a very simple dialog, to add a custom employee to a business application. The modal itself is nothing special - first name, last name, OK, Cancel. Easy...right? One of the business rules, however, is that we…
0
votes
2 answers

Remote validation restrict for edit controller method

I have model for register my model class public class RegisterViewModel { [Required] [StringLength(100, ErrorMessage = "Please enter a minimum of {2} characters", MinimumLength = 6)] [DisplayName("University ID")] …
Chathz
  • 723
  • 4
  • 16
  • 41
0
votes
2 answers

Remote Validation - No url for remote validation could be found mvc 5 C#

I am currently working on a 4 tier application, Core, Data, Shared, UI currently how it stands all our models are located inside the Shared project which is a class Library in one of the models we have the following…
Code Ratchet
  • 5,758
  • 18
  • 77
  • 141
0
votes
1 answer

Override EditorFor ID and name

I'm building a blog website. I want users to be able to edit their posts. I need to change the name of the HTML helper to match my model so I can use remote validation. Model [RegularExpression("[a-z]{1,50}", ErrorMessage = "URL String must…