Check required field in custom validator
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
I have tried the following code within the serverValidate handler and
it will not work:
If txtTheTextBox.Text.Trim <> "" Then
args.IsValid = True
args.IsValid = False
.... 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.
|All times are GMT. The time now is 05:30 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.