Hi there
I’m simply trying to check for a blank or empty value in a textbox on my
webform. In this instance I do not want to use a requiredfieldvalidator,
I want to use a customvalidator (as I have other code within the
customvalidator which works).
This won’t work (within servervalidate):
If txtBox.Text.ToString = "" Then raise exception…..
Nor will this
If txtBox.Text = "" Then raise exception…
I’ve tried null (perhaps I didn’t do that correctly) but is doesn’t seem
to work either, any ideas?
Seems a really simple thing to do (but /sigh! I just can't do it).
Thanks
Alex
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!