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
1 answer
MVC3 Managing Remote Validation Exception
i have the following problem:
i'm using remote validation for validate a field and now i'm trying to manage exception
public class ValidationController : Controller
{
List values = new List() { "AAAA", "BBBB" }; //blacklist
…

Frank
- 13
- 2
0
votes
1 answer
jQuery remote validation from PHP MySQL query relating to form entry doing strange things in Internet Explorer
I am getting some strange behavior on Internet Explorer with a form I am building, when I add a remote rule in the jQuery, namely, the remote validate rule relating to "username" using "check_username.php". In the code below I am using requiring a…

Jay C. Besch
- 89
- 1
- 9
0
votes
1 answer
MVC3 Remote Validation of a field within an IEnumerable
I have an object inside an IEnumerable of my model class, the rendered HTML looks like

hardywang
- 4,864
- 11
- 65
- 101
0
votes
1 answer
Where can I find the RemoteValidation details to use in a HTML Helper or EditorTemplate?
I currently have a MVC3 site in which I am displaying DateTime fields with a specific format, namely uppercase (DD-MON-YYYY).
I have create tthe following DateTime.ascx EditorTemplate for this, and I am adding a custom data-datepicker attribute whih…

Nick
- 1,116
- 2
- 12
- 24
0
votes
1 answer
RemoteAttribute in viewmodel and ActionNameAttribute in corresponding action method (MVC3)
I just discovered that remote validation using the RemoteAttribute will not work unless either:
The action method for the remote validation does not have an [ActionName] attribute, or
The action method for the remote validation has an [ActionName]…

danludwig
- 46,965
- 25
- 159
- 237
0
votes
0 answers
Remote Validation is not Working for Model List
I have applied remote validation to Quantity filed request must be less than the available in database field when I use one textbox the validation shows but when I use dynamic table as list model the validation not fire.
Public partial class…

AL- MAHROUQI
- 13
- 3
0
votes
0 answers
Getting null values while Remote Validating CurrentPassword
I have a currentPassword property in my changePasswordViewModel and i want to validate it on client side using Remote attribute. this is my model
public class PatientPasswordChangeViewModel
{
public int id { get; set; }
…

Salman Abbas
- 174
- 1
- 2
- 14
0
votes
1 answer
Conditional remote validation in razor pages using data annotation
I have to validate a field based on another fields input.
If Field A is not empty, then Field B should be filled out.
Currently this form is inside a tab,so when i do the javascript validation it is navigating to the first tab.
Here is my code for…

Teena
- 155
- 1
- 15
0
votes
1 answer
Why is ASP.NET core 3.1 [Remote] validation not working?
I'm coding in ASP.NET core 3.1 and I want to add the [Remote] attribute on my model. I looked at the official documentation page and coded something like that:
Code at my controller "ClientController":
[AcceptVerbs("GET", "POST")]
public…

Don
- 13
- 3
0
votes
1 answer
remote validation does not work for partial view
I have order with several order items and I use partial view to load order items. I want to validate OrderLineItemEntity's ProductCode but it does not work. Every other property validation works which is not in partial view. How can I force to…

Izzy
- 1
- 1
0
votes
0 answers
submit button doesn't post data while using jquery.validation.js
for using Remote validation , C# Asp .net core, I add this two libraries