Velocity Reviews

Velocity Reviews (
-   ASP .Net Web Controls (
-   -   Check required field in custom validator (

Alex Shirley 07-13-2004 05:26 PM

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
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?



All times are GMT. The time now is 04:23 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.