Click here to Skip to main content
15,895,494 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to Spell a Number Pin
led mike3-Apr-08 11:37
led mike3-Apr-08 11:37 
GeneralRe: How to Spell a Number Pin
Pete O'Hanlon3-Apr-08 11:50
mvePete O'Hanlon3-Apr-08 11:50 
GeneralRegEx for UserName in createuserwizard Pin
AlexeiXX33-Apr-08 8:57
AlexeiXX33-Apr-08 8:57 
GeneralRe: RegEx for UserName in createuserwizard Pin
gspiteri3-Apr-08 12:43
gspiteri3-Apr-08 12:43 
GeneralRe: RegEx for UserName in createuserwizard Pin
AlexeiXX33-Apr-08 12:54
AlexeiXX33-Apr-08 12:54 
GeneralRe: RegEx for UserName in createuserwizard Pin
pmarfleet3-Apr-08 12:58
pmarfleet3-Apr-08 12:58 
GeneralRe: RegEx for UserName in createuserwizard Pin
gspiteri3-Apr-08 12:58
gspiteri3-Apr-08 12:58 
GeneralRe: RegEx for UserName in createuserwizard Pin
pmarfleet3-Apr-08 13:12
pmarfleet3-Apr-08 13:12 
The only way I can think to do this is to use a CustomValidator[^] control.

In your custom validation function, first use a regular expression to check that the string is between 6 & 20 characters and contains only letters, numbers, spaces or the (._-) symbols (BTW, the literal '.' character needs to be escaped in a regular expression as \. because '.' is a reserved regular expression character). If your input passes this validation, write some code to count the number of spaces it contains.

Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRegEx is great Pin
AlexeiXX33-Apr-08 17:21
AlexeiXX33-Apr-08 17:21 
General[Message Deleted] Pin
Yuqing3-Apr-08 8:30
Yuqing3-Apr-08 8:30 
GeneralRe: Ideas on a web-based application project : bids welcome Pin
led mike3-Apr-08 10:21
led mike3-Apr-08 10:21 
GeneralRe: Ideas on a web-based application project : bids welcome Pin
Pete O'Hanlon3-Apr-08 10:33
mvePete O'Hanlon3-Apr-08 10:33 
GeneralSession lost!! Pin
Leandrão3-Apr-08 8:29
Leandrão3-Apr-08 8:29 
GeneralSession lost. Paradise found. Pin
Pete O'Hanlon3-Apr-08 10:36
mvePete O'Hanlon3-Apr-08 10:36 
GeneralRe: Session lost. Paradise found. Pin
led mike3-Apr-08 11:24
led mike3-Apr-08 11:24 
GeneralRe: Session lost. Paradise found. Pin
Pete O'Hanlon3-Apr-08 11:40
mvePete O'Hanlon3-Apr-08 11:40 
Generaltoo many error logs filling disk space Pin
shefali_sinha3-Apr-08 8:27
shefali_sinha3-Apr-08 8:27 
GeneralRe: too many error logs filling disk space Pin
led mike3-Apr-08 10:13
led mike3-Apr-08 10:13 
QuestionHow to do this? Pin
Chatura Dilan3-Apr-08 6:07
Chatura Dilan3-Apr-08 6:07 
AnswerRe: How to do this? Pin
pmarfleet3-Apr-08 9:17
pmarfleet3-Apr-08 9:17 
QuestionHow to avoid PostBack in LinkButton Pin
udaymohan3-Apr-08 5:47
udaymohan3-Apr-08 5:47 
GeneralRe: How to avoid PostBack in LinkButton Pin
Jesse Squire3-Apr-08 6:03
Jesse Squire3-Apr-08 6:03 
GeneralRe: How to avoid PostBack in LinkButton Pin
MoustafaS3-Apr-08 6:59
MoustafaS3-Apr-08 6:59 
QuestionHow can I find user click Back Button at IE? Pin
Dong Kim3-Apr-08 5:38
Dong Kim3-Apr-08 5:38 
AnswerRe: How can I find user click Back Button at IE? Pin
Jesse Squire3-Apr-08 6:27
Jesse Squire3-Apr-08 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.