Hi
How to use Remote Validation at Client side if ID Exists or not. If exists then message should be displayed.
Thanks
Hi
How to use Remote Validation at Client side if ID Exists or not. If exists then message should be displayed.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jun 16, 2021, 9:48 AM
Ramco RamcoPosted Jun 16, 2021, 9:46 AM
Sachin SinghPosted Jun 16, 2021, 9:33 AM
Ramco RamcoPosted Jun 16, 2021, 9:25 AM
Hi Sachin
I am suing Ado.net then what should be the code. Secondly how the Class will be accessed.
Below is the class
public class Location
{
//private string _isactive = "Y";
public Location()
{
}
[Key]
[Display(Name = "Id")]
public string Id { get; set; }
[Display(Name = "Description")]
[Required(ErrorMessage = "Location cannot be Blank. Max length should be less than or equal to 25"), MaxLength(25)]
public string Description { get; set; }
}
Thanks
Sachin SinghPosted Jun 16, 2021, 9:18 AM