Hi Friends,
working on the cusom validator in aspx page and validation method from the server side writen but it not firing the method
aspx page

and in the server side written the code like this
protected void valNamen_ServerValidate(object source, ServerValidateEventArgs args)
{
{
if (txtName.Text == string.Empty)
{
valNamen.ErrorMessage = "Please enter Valid Name.";
args.IsValid = false;
}
{
valNamen.ErrorMessage = "Please enter Valid Name.";
args.IsValid = false;
}
}
but th method is not firing any time.
let us know if any thing i am missing here
Sundaram SubramanianPosted Sep 13, 2019, 6:20 AM