flnMichael
Programmer
Hey,
I have a custom validator function that only fires if there is something in the text field when I hit the submit button. Is there some order in which these validators need to be for them to run everytime I hit the submit button?
Thanks
Mike
I have a custom validator function that only fires if there is something in the text field when I hit the submit button. Is there some order in which these validators need to be for them to run everytime I hit the submit button?
Thanks
Mike
Code:
private void ParamVal_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs e)
{
try
{
string str = Convert.ToString(e.Value);
e.IsValid = (str != "") ? true : false;
}
catch
{
e.IsValid = false;
}
}