Remote Validation is the ability to call a custom server-side validation method via the client-side.
Questions tagged [remote-validation]
166 questions
1
vote
2 answers
MVC3 Remote Validation not Fired?
I created a very simple test project to illustrate the problem.
My model class
public class HomeModel
{
[Required(ErrorMessage="Missing property1.")]
public string Property1
{
get;
set;
}
…

hardywang
- 4,864
- 11
- 65
- 101
1
vote
0 answers
Remote validation - Generated remote url is wrong
I am trying to add remote validation for old password in the Account view (ChangePassword section).
I have a viewmodel Areas/Private/ViewModels/Account/ChangePasswordViewModel.cs which contains the OldPassword field:
[Remote("IsPasswordValid",…

DimChtz
- 4,043
- 2
- 21
- 39
1
vote
3 answers
How to show the ajax loader image while remote validating using data annotation in asp.net mvc3
in my asp.net mvc3 application i am doing remote validation if a user already exist using data annotation . it is working perfectly . i was wondering if there is any why i can show the ajax loader image beside the input field in the form while…

Shaik Mohammad Rafi
- 31
- 5
1
vote
1 answer
Custom remote validations for complex models in blazor?
I am currently using to validate complex models.
So far so good, except that there is also a requirement to check against the database to see if a record with the same value already exists.
I have tried…

Josh
- 575
- 7
- 17
1
vote
0 answers
Remote validation, No URL for remote validation could be found
Whatever tutorial or sample I use I get the exact same message over and over :
My Model :
public class Login
{
[StringLength(50)]
[Remote("CheckUserName", "Index", ErrorMessage = "Username already exists")]
public string UserName { get;…

user11208424
- 51
- 9
1
vote
0 answers
How to prevent this route error in remote model validation ASP.NET Core
I'm trying to validate email using this remote validation attribute, but I keep getting this error. Does anyone know the exact reason for this?
public class StudentVm
{
public string Id { get; set; }
[Required]
public string…

Samithra niroshana
- 69
- 1
- 7
1
vote
0 answers
Remote Validation not Firing in Unit Test
I am creating controller unit tests and am trying to programmatically validate a view model with a remote validation. Built in and validationattributes all fire and return correctly, but the remote validation will not execute.
All the validations…

user1558501
- 61
- 1
- 4
1
vote
7 answers
Remote validation not working in ASP.NET MVC 5
Here I have create form which consists customer email field for which I am trying to check whether the entered email already exits or not and if exist show email already exists message.
To do this i have tried to use remote validation but the…

redcaper71
- 287
- 3
- 6
- 13
1
vote
1 answer
Remote Validation On Nested ViewModels With __RequestVerificationToken
I have a viewmodel class that called "LoginIndexViewModel" for use on login razor page, containing login, signin & forget password forms. It contains several properties, each of which is a viewmodel separately. Here is the "LoginIndexViewModel"…

Varan Sinayee
- 1,105
- 2
- 12
- 26
1
vote
1 answer
ASP.NET MVC hidden input as addtional fields sent as null to remote validator
I have a problem with my Remote Validation.
The following is my model :
[MetadataType(typeof(M_ToolingAnnotation))]
public partial class M_Tooling
{
public string ToolingID { get; set; }
}
internal sealed class M_ToolingAnnotation
{
…

Khairul
- 191
- 2
- 14
1
vote
1 answer
jQuery remote validation on create vs update
I have a Laravel 5.4 backend with validation rules all set up and working fine.
I also implemented the jQuery Validation plugin for client side validation for a better experience and used it successfully to test the remote validation.
So for…

seekay
- 2,493
- 3
- 27
- 33
1
vote
2 answers
Make Remote Email Validation work only in certain views?
I have an email property in my model that looks like this
[Required(ErrorMessage ="Email Address is required.")]
[EmailAddress(ErrorMessage = "Invalid Email Address")]
[Remote("checkEmailValidate", "Employee", HttpMethod = "POST",…

Andrew McKeighan
- 121
- 1
- 11
1
vote
0 answers
MVC Remote validation is not rendering
I have a model called ItemCodeModel that is defined outside of my MVC
project (in a different project). Here is the model below:
public class ItemCodeModel
{
public Guid ItemId {get; set;}
[Required]
…

user2472888
- 21
- 2
1
vote
0 answers
MVC Remote validation request at input focus lost only
I've been studying the ASP.NET MVC 5 client-side validation feature.
The validation process is triggered mainly when the input element lost is focus (i.e: user stops editing it and select another element)
The built-in remote validation feature…

mdarefull
- 829
- 2
- 14
- 24
1
vote
0 answers
How to create an custom remote validation attribute with dynamic additiional fields in ASP.NET MVC
I am developing an ASP.NET MVC5 project. In my project I am creating remote validation. For that I just created an custom validation attribute to support server-side validation. My remote validator working fine when remote action has to catch only…

Wai Yan Hein
- 13,651
- 35
- 180
- 372