|
-
Sep 13th, 2005, 05:30 AM
#1
Thread Starter
Fanatic Member
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.
-
Sep 13th, 2005, 07:06 AM
#2
Addicted Member
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.
-
Sep 14th, 2005, 06:02 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|