validation, checkbox, textbox

Results 1 to 2 of 2

Thread: validation, checkbox, textbox

  1. #1
    Join Date
    Dec 1969

    Default validation, checkbox, textbox

    I&#039;m trying to validated that a text box is filled if a check box is checked. I&#039;m using a customvalidator control connected to text box with the following client vbscript that doesnt work:<BR><BR>Sub PurpWatValid (source, arguments)<BR> if chkPurpWat.Value = True then<BR> if Len(arguments.value &#060; 1) then<BR> arguments.IsValid=False<BR> else<BR> arguments.IsValid=True<BR> end if<BR> end if <BR>End Sub<BR><BR>Is there anyway to check, or how do you check if a check box has been checked<BR><BR>Thanks<BR><BR>Pete

  2. #2
    Join Date
    Dec 1969

    Default RE: validation, checkbox, textbox

    Not sure if this is what you were asking but you can used the checked property like<BR><BR>if myCbx.checked then<BR>&#039;Box was checked<BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts