Remote Validation is the ability to call a custom server-side validation method via the client-side.
Questions tagged [remote-validation]
159 questions
0
votes
0 answers
How do I create a remote validation code which is reusable
I need to create the same remote validation on 50 properties.
I have added this remote validation
[DropDownSelected("PCP")]
public Guid ProIdentifier { get; set; }
and I need to Use this code for 50 different properties but with different names.
Balpreet_1988
- 19
- 5
0
votes
1 answer
Remote validation not working for guid
[Remote("DropDownSelected", "Patient")]
public Guid SexIdentifier { get; set; }
public ActionResult DropDownSelected(object value)
{
var x = ((Guid)value).ToString();
string xsd = value.ToString();
var abc =…
Balpreet_1988
- 19
- 5
0
votes
1 answer
How can I show the remote validation message with a jquery in MVC3?
I have a JQuery to show a remote validation message but I only want it to execute for the remote validation and not the required validation.
So far I have
$('#MyElement').keyup(function () {
if (!!myEmailTimeoutChecker) {
…
Pittfall
- 2,521
- 5
- 27
- 56
0
votes
1 answer
What is the best way to set up a sort of a timer for user validation using MVC 4
I have set up some remote validation in my controller for email validation so that the email can be verified right away. I am hoping to take this a little bit further and validate the email as the user is still typing. Right now it validates when…
Pittfall
- 2,521
- 5
- 27
- 56
0
votes
2 answers
Remote Validation in asp.net mvc 4.0 is called on mouseclick not on textchange?
I experience a very strange behavior with Remote Validation in asp.net mvc.
These are the steps to reproduce the behavior:
1.) Enter user name "1" in the database
2.) Enter user name "1" in the Create User dialog -> nothing happens, I expected an…
Pascal
- 10,107
- 18
- 83
- 180
0
votes
1 answer
jQuery remote validation not working on keypress, only working on focus change
I have a view model
public class UserRegister
{
[Remote("CheckUserEmail")]
public string Email { get; set; }
}
There is a Register view which is strongly typed with UserRegister model.
@Html.EditorFor(model =>…
HashCoder
- 916
- 1
- 13
- 32
0
votes
1 answer
Rectify the input at client side using RemoteValidation
Is there any possibility of rectifying the input at client side using Remote Validation?
For example, the user will enter the date as 010101 which means 01-Jan-2001, can Remote Validation reflect/pass the rectified value (010101 into 01-Jan-2001)…
bjan
- 1,820
- 7
- 32
- 59
-1
votes
2 answers
MVC Remote Validation Not calling function or working
MVC Remote Validation not working, I'm new to MVC, any help is appreciated:
WebConfig:
Controller:
…
a ridi
- 125
- 12
-2
votes
1 answer
How to use Remote validation with view models
I have a asp.NET MVC 5 project with 4 assembly projects. Those are;
Common
Domain
Service
Web.UI
I have a model class in domain layer.
public class Employee
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ID { get;…
Sumudu De Zoysa
- 247
- 3
- 15