Questions tagged [remote-validation]

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

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 …
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…
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]…
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…
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…
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
0
votes
0 answers

Remote Validation Hitting Function Twice

I'm facing 2 issues while learning remote validation. First is that the values of int are being passed individually (e.g 123 being passed like 1 and 2 being sent in the next call). The second issue I'm facing is that each call is running twice in…
0
votes
1 answer

ASP.NET Core MVC : use remote input validation

Edit 1: include full code related to this not just a portion. I am trying to create username input validation for admin role on my application. I will start from the table in SQL server. Employee table columns in SQL server has…
0
votes
0 answers

asp.net remote validation only for one page

I used remote validation, but I want use it in just Specified page not in other pages. How can I do that ?!?! [Remote("IsUserExistsByEmail", "User")] public string MemberEmail { get; set; } [AcceptVerbs("GET")] public async…
Soheil
  • 190
  • 1
  • 1
  • 14
0
votes
1 answer

MVC3 Remote attribute, how to implement?

I have a Solution under the solution there is few Projects one of the called DomainModel, in which i write my models and other stuff mainly infrastructure. Now i have another project called WebUI in which i do my UI (Views, Controllers , etc...) I…
hackp0int
  • 4,052
  • 8
  • 59
  • 95