Results 1 to 3 of 3

Thread: validation

  1. #1

    Thread Starter
    Fanatic Member d2005's Avatar
    Join Date
    Aug 2005
    Location
    ireland
    Posts
    620

    validation

    howdy folks
    me again,

    ive been messing around with validation and have many working
    anyone know
    1) how to set the length of textenterd
    ie. the textbox can only contain 100 characters

    2)starts with ^+44 - but followed by 12 numberic characters

    thanks again guys
    it works 60% of the time, all the time.

  2. #2
    Addicted Member
    Join Date
    Aug 2004
    Location
    Cape Town, South Africa
    Posts
    149

    Re: validation

    Set the Maxlength property of the asp textbox to 100

    With your second question, u'll need to use javascript to validate the OnKeyDown event of the control to make sure the character entered is numeric.
    Last edited by Patch21; Sep 13th, 2005 at 07:14 AM.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: validation

    2)starts with ^+44 - but followed by 12 numberic characters
    Do you mean, literally, the string ^+44 should be the starting characters? Use a regular expression validator. Are you familiar with Regex?

Posting Permissions

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



Click Here to Expand Forum to Full Width