PDA

Click to See Complete Forum and Search --> : validation


d2005
Sep 13th, 2005, 05:30 AM
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

Patch21
Sep 13th, 2005, 07:06 AM
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.

mendhak
Sep 14th, 2005, 06:02 AM
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?