Remote Validation is the ability to call a custom server-side validation method via the client-side.
Questions tagged [remote-validation]
166 questions
0
votes
0 answers
asp.net Remote Attribute validation
here is my Register View Model
public class RegisterViewModel
{
[Required(AllowEmptyStrings = false, ErrorMessage = "Bu alanı boş bırakmayınız.")]
public string ADI { get; set; }
[Required(AllowEmptyStrings = false, ErrorMessage = "Bu…

murtaza safar
- 13
- 7
0
votes
1 answer
Use AdditionalFields to compare to field in a different class
Introduction
In MVC Core I have a base ViewModel and two ViewModels included in the base model as properties, like so:
public class BaseViewModel
{
public FirstViewModel First { get; set; }
public SecondViewModel Second { get; set;…

MeanGreen
- 3,098
- 5
- 37
- 63
0
votes
2 answers
Remote validation randomly throws "dictionary contains a null entry" errors
I am getting this super annoying error when remote validation tries to check if a value already exists in the db:
The parameters dictionary contains a null entry for parameter 'gbsNumber' of non-nullable type 'System.Int32' for method…

Bassie
- 9,529
- 8
- 68
- 159
0
votes
0 answers
controller do not hit when use AdditionalFields in remote validation
In product class i have code properties which need to be unique. I use remote validation. but it makes problem when editing. so i add AdditionalFields. it works fine when perform edit operation but product can not create now. it never hit controller…

Iftekhar Rasul
- 51
- 2
- 10
0
votes
1 answer
Parsley remote validation is performed several times, even after successful submission
I am using Parsley in my project for form validation. One field in said form is an ID that must be unique - so I have added my own addAsyncValidator and on the backend I return 404 or 200 depending on whether an entry with the ID already exists or…

NL3
- 117
- 1
- 10
0
votes
1 answer
Remote Validation method does not fire
i am using remote validation. i want to validate weather the phone no is exist or not. But Remote method does not called. I have seen some of solution they were adding jquery validate cdn for remote validation. I have put these cdn but still problem…

shami sheikh
- 552
- 3
- 13
- 26
0
votes
0 answers
Email Remote Validation is Sending Null Value to Action
I am trying to validate email existence by using Remote validation.I have searched this on Stack-overflow but no answer works for me.
The value sent to Validation method is null.
Here is the Html form..
…
user5474637
0
votes
0 answers
Remote validation is not working for Area using mvc 5
[Display(Name = "Campus Name")]
[Required(ErrorMessage = "Campus Name is required")]
[Remote(controller:"School",action: "checkCompusNameExists",areaName:"SetUp",ErrorMessage ="Campus Name Already Exist")]
public string CampusName { get; set;…
0
votes
2 answers
How to avoid multiple submit of form in ASP.NET MVC?
I tried to write a code and scripts using ASP.NET MVC 5. Was I use modal to do Create, Update, and Delete functionality which is working properly but when it comes with Creating, and Updating because I enable remote validations, it works at first…

Patrick
- 21
- 2
- 8
0
votes
1 answer
Remote validation causes submit inputs (multiple-submit-buttons) to be null
I recently implemented remote validation in my form:
ViewModel:
[Remote("IsTagUnique", "myController", "myArea", ErrorMessage = "This tag already exists.")]
public string tag { get; set; }
Controller:
public ActionResult IsTagUnique(string…

AbcUser123
- 21
- 5
0
votes
0 answers
Remote Validation in MVC4
I am trying to validate password by matching the previous password entered and I am successful to validate after login into my application but when I try to validate by forcing the user to change password before login, the remote validation is not…

best
- 167
- 1
- 1
- 13
0
votes
1 answer
MVC Remote Validation not rendered
i'am using class library for my Models and create my controllers in Area
now i want to use remote validation but it's not working,actually it's not rendered.
my model in Models class…

barzin.A
- 1,554
- 2
- 12
- 20
0
votes
1 answer
Identity system User is always null in the action method of custom remote validation attribute in ASP.NET MVC
I am developing an Asp.net mvc web application. In my application, I need to implement, custom remote validation attribute. I can implement it successfully. But it is having problem with User of identity system in controller action method that is…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
0
votes
1 answer
C# MVC CMS - Customising Remote Validation
At the link below I asked a question about how to ensure a field does not already contain the same value (for example when there is a unique constraint on a field which correctly causes C# to throw an exception when voilated). With the answer I…

Francis Rodgers
- 4,565
- 8
- 46
- 65