Results 1 to 2 of 2

Thread: [02/03] How to checkbox is empty

  1. #1
    New Member
    Join Date
    Mar 07
    Location
    Nashik
    Posts
    2

    [02/03] How to checkbox is empty

    Hello friends..I have two textboxes on a form accepting url and submit button.when user clicks on submit button, it checks
    1) whether the textboxes r empty
    2) both textboxes must have same url
    3) url must be between 2 to 25 chars..etc
    if all these conditions r true then it redirects to another page..
    I have taken server controls (textboxes and submit )..and try to write javascript on onclick of that button..but it gives error..like' ")" expected '. what is the easiest way to do that?

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 05
    Location
    Montana
    Posts
    2,817

    Re: [02/03] How to checkbox is empty

    Use the built in validator controls. Use a regex validator to check if the URL is valid, and a compare validator to ensure both URL's are the same.

Posting Permissions

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