Dear All,
Currently i am facing a problem related to MVC 4 Remote Validation.
I have 1 models Name UserModel along with remote validation
[DataType(DataType.EmailAddress)]
[StringLength(50)]
[Remote("IsNameExists", "User", ErrorMessage = "Login ID/Email Already is in use.")]
public string UserLogon
{
get;
set;
}
Now ,above models being used by Multiple view like User & Signup , both views have same model value like
@Html.TextBoxFor(model => model.UserLogon,
new { placeholder = "Enter Email", @class = "inputSPCL", @maxlength = "50" })
@Html.ValidationMessageFor(model => model.UserLogon)
But problem is that, above Remote validation fired for User View but not working
for Signup.
Can any one please help me on this?
Regards