Compare Validation

  • Thread starter Thread starter AGB
  • Start date Start date
A

AGB

hi all,

I have a check box list that I am using a custom validation control to
ensure that the user selected at least one option. I need to then
ensure that the user has entered a value in another text field if they
chose one of the check box list values. Any way to do this without
writing custom java script?

Thanks
 
hi all,

I have a check box list that I am using a custom validation control to
ensure that the user selected at least one option. I need to then
ensure that the user has entered a value in another text field if they
chose one of the check box list values. Any way to do this without
writing custom java script?

Thanks

Are you takling server or client side here? If you are talking client
side after the postback, just check the TextBox.Text property:

<code>
If MyTextBox.Text = "" Then
'TextBox is empty
End If
</code>

Cheers

Tom
 
..net left out the notion of cross edits. you will have to do a custom.

-- bruce (sqlwork.com)
 
While the ASP.NET validators force you to write custom code (using a
CustomValidator), I built a replacement for ASP.NET validators that does
not. Professional Validation And More
(http://www.peterblum.com/vam/home.aspx) includes 25 validators. Each has a
feature called the Enabler where you specify a rule that enables the
validator based on some condition on the page, such as an option selected in
a list. It generates the client-side code for you and that code supports
many browsers, far more than the support of IE and IE/Mac in the ASP.NET 1.x
validators.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 
Back
Top