A
Alex Shirley
Hi
I'm trying to check for a required field in a textbox using a custom
validator. I do not want to use a requiredfieldvalidator in this
instance.
I have tried the following code within the serverValidate handler and
it will not work:
If txtTheTextBox.Text.Trim <> "" Then
args.IsValid = True
else
args.IsValid = False
End If
.... and it refuses to work! Note serverValidate code does fire (I am
using other code as well in this custom validator and it works).
I don't think the blank string comparison is working.
Any ideas?
Thanks
Alex
I'm trying to check for a required field in a textbox using a custom
validator. I do not want to use a requiredfieldvalidator in this
instance.
I have tried the following code within the serverValidate handler and
it will not work:
If txtTheTextBox.Text.Trim <> "" Then
args.IsValid = True
else
args.IsValid = False
End If
.... and it refuses to work! Note serverValidate code does fire (I am
using other code as well in this custom validator and it works).
I don't think the blank string comparison is working.
Any ideas?
Thanks
Alex