G
Guest
Dear All,
I want to use a Custom Validator Control on a Text box which accepts only
characters values. I am using the follwing procedure:
Sub CustomValidator_ServerValidate(ByVal s As Object, ByVal e As ServerValidateEventArgs)
If e.Value = "[A-Z]" Then
e.IsValid = True
Else
e.IsValid = False
End If
End Sub
I dont know that whether this is the right code or not. I have tried it
but its not working.
Any help much appreciated.
cheers,
Sunil Sabir
I want to use a Custom Validator Control on a Text box which accepts only
characters values. I am using the follwing procedure:
Sub CustomValidator_ServerValidate(ByVal s As Object, ByVal e As ServerValidateEventArgs)
If e.Value = "[A-Z]" Then
e.IsValid = True
Else
e.IsValid = False
End If
End Sub
I dont know that whether this is the right code or not. I have tried it
but its not working.
Any help much appreciated.
cheers,
Sunil Sabir