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
1 answer
Prevent .Net Core Remote Validation on form Submit event
I have put a remote validation in Model Class,
And it triggered automatically on Sub event and it makes submit button to click twice! to actually work (submit).
in a nut shell
on Submit button
It calls remote validation method.
2 It calls actual…

Dave
- 156
- 1
- 1
- 14
0
votes
0 answers
Remote Validation in ASP.Net MVC 3 - the procedure to prevent to register duplicate username
I have created mysql database at smarterasp.net and connected it
Now, I don't want to have anyone register with a duplicate username
This is my Model :
public class Employeeregistration
{
public int id { get; set; }
[Required]
…

Umair Zubairi
- 23
- 7
0
votes
1 answer
MVC 3 Remote Validation of object not working
I realize this question has already been asked plenty of times. However none of the solutions worked for me.
The problem:
I have an object:
public class SomeObject
{
[Remote("MyAction", "MyController")]
public DateTime MyDate { get; set;…

Darko
- 38,310
- 15
- 80
- 107
0
votes
3 answers
Problem with remote validation in asp.net mvc 3
I have a Person Model
public class Person
{
public int ID { get; set; }
[Required]
[Remote("UserNameExists", "People", "Username is already taken.")]
public string Name { get; set; }
[Required]
…

nacho10f
- 5,816
- 6
- 42
- 73
0
votes
1 answer
ASP.NET Core MVC remote validation doesn't hit the controller
I'm using core's remote validation in a form inside a partial view that is loaded in the main view but I keep getting the error in the browser console when trying to execute the validation ([element_name] is the name of the field that's being…

Enzo Milanese
- 1
- 2
0
votes
1 answer
ASP.NET Core Remote Validation not showing
I tried adding some simple Remote validation to my webpage (ASP.NET Core 2.2, MVC), but it does not show on GUI.
Code from my Client (view) model:
[StringLength(32, ErrorMessage = "Max input is 32 characters.")]
[Remote(action: "CheckTaxNumber",…

TheMixy
- 1,049
- 15
- 36
0
votes
1 answer
How do I get my remote validator to pass in the input values?
I am using the asp.net core remote validator. I need to pass in two decimals so I can validate that one is greater than the other.
I've renamed the controller action variables to match the element Id's in the web page but this had no impact. I am…

tnk479
- 672
- 11
- 26
0
votes
1 answer
Map GET request to Action
I'm trying to validate the progress quantity (and other fields once this works) that belongs to the BeginCollectionItems server side. The request is being sent but the parameter progressQty is not being read by the action.
This is the action I'm…
0
votes
2 answers
MVC3 remote validation on an entity from a refrenced assembly?
If I have an entity class defined in a separate assembly (like from Entity Framework), is it possible to add remote validation to a property?
If the class were defined in my MVC project I would simply add a Remote attribute to the property, but I…

Glazed
- 2,048
- 18
- 20
0
votes
1 answer
Remote Validation is Not Being Hit
I'm trying to use remote validation to make sure an input has a value but only when a previous input has a specific value. However, the remote validation is not being hit.
I have put a break point on the remote validation action in the controller…

harriet
- 11
- 1
0
votes
1 answer
How can OpenID Connect utilize userinfo for authorization?
I'm utilizing mod_auth_openidc to front an API that has neither authentication nor authorization. The same endpoint also serves UI, so it has interactive and server-to-server queries hitting it. This is something the module has AuthType auth-openidc…

mabi
- 5,279
- 2
- 43
- 78
0
votes
1 answer
Remote validation on file input in .NET Core MVC
I have implemented remote validation on a text property without issue, and the remote validation fires correctly, however I am trying to also add validation for an image upload before the form is submitted. Ideally I would like the file to be…

dwnz
- 47
- 6
0
votes
0 answers
Asp.net MVC form remote validation not executing with async api call
I have email field on an asp.net mvc form. I need to verify the email using remote validation by calling a net core api server. Remote validation is activated when the email field looses focus. However, the call to api server stalled at async call…

user3097695
- 1,152
- 2
- 16
- 42
0
votes
1 answer
Remote Validation on a Dropdown List Combination in MVC 5
Does anyone know how I can perform remote validation on a drop-down list combination in MVC 5?
In short, I assign a customer to a user so I want to ensure that a customer can't be assigned to the same user twice.
I have created a validation action…

M. Anthony
- 1
- 4
0
votes
1 answer
Remote Validation For Checking Email in MVC
I am using remote validation for checking if email already exist in database but it is not working, here is the code:
Model Property
[Remote("IsAlreadyUserExist", "User", HttpMethod = "POST", ErrorMessage = "Email Already Exists.")]
public string…

Learner1
- 99
- 1
- 11