Click here to Skip to main content
15,499,430 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to Spell a Number Pin
led mike3-Apr-08 12:37
Memberled mike3-Apr-08 12:37 
GeneralRe: How to Spell a Number Pin
Pete O'Hanlon3-Apr-08 12:50
mvaPete O'Hanlon3-Apr-08 12:50 
GeneralRegEx for UserName in createuserwizard Pin
AlexeiXX33-Apr-08 9:57
MemberAlexeiXX33-Apr-08 9:57 
GeneralRe: RegEx for UserName in createuserwizard Pin
gspiteri3-Apr-08 13:43
Membergspiteri3-Apr-08 13:43 
GeneralRe: RegEx for UserName in createuserwizard Pin
AlexeiXX33-Apr-08 13:54
MemberAlexeiXX33-Apr-08 13:54 
GeneralRe: RegEx for UserName in createuserwizard Pin
pmarfleet3-Apr-08 13:58
Memberpmarfleet3-Apr-08 13:58 
GeneralRe: RegEx for UserName in createuserwizard Pin
gspiteri3-Apr-08 13:58
Membergspiteri3-Apr-08 13:58 
GeneralRe: RegEx for UserName in createuserwizard Pin
pmarfleet3-Apr-08 14:12
Memberpmarfleet3-Apr-08 14: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 18:21
MemberAlexeiXX33-Apr-08 18:21 
General[Message Deleted] Pin
Yuqing3-Apr-08 9:30
MemberYuqing3-Apr-08 9:30 
GeneralRe: Ideas on a web-based application project : bids welcome Pin
led mike3-Apr-08 11:21
Memberled mike3-Apr-08 11:21 
GeneralRe: Ideas on a web-based application project : bids welcome Pin
Pete O'Hanlon3-Apr-08 11:33
mvaPete O'Hanlon3-Apr-08 11:33 
GeneralSession lost!! Pin
Leandrão3-Apr-08 9:29
MemberLeandrão3-Apr-08 9:29 
GeneralSession lost. Paradise found. Pin
Pete O'Hanlon3-Apr-08 11:36
mvaPete O'Hanlon3-Apr-08 11:36 
GeneralRe: Session lost. Paradise found. Pin
led mike3-Apr-08 12:24
Memberled mike3-Apr-08 12:24 
GeneralRe: Session lost. Paradise found. Pin
Pete O'Hanlon3-Apr-08 12:40
mvaPete O'Hanlon3-Apr-08 12:40 
Generaltoo many error logs filling disk space Pin
shefali_sinha3-Apr-08 9:27
Membershefali_sinha3-Apr-08 9:27 
GeneralRe: too many error logs filling disk space Pin
led mike3-Apr-08 11:13
Memberled mike3-Apr-08 11:13 
QuestionHow to do this? Pin
Chatura Dilan3-Apr-08 7:07
MemberChatura Dilan3-Apr-08 7:07 
AnswerRe: How to do this? Pin
pmarfleet3-Apr-08 10:17
Memberpmarfleet3-Apr-08 10:17 
QuestionHow to avoid PostBack in LinkButton Pin
udaymohan3-Apr-08 6:47
Memberudaymohan3-Apr-08 6:47 
GeneralRe: How to avoid PostBack in LinkButton Pin
Jesse Squire3-Apr-08 7:03
MemberJesse Squire3-Apr-08 7:03 
GeneralRe: How to avoid PostBack in LinkButton Pin
MoustafaS3-Apr-08 7:59
MemberMoustafaS3-Apr-08 7:59 
QuestionHow can I find user click Back Button at IE? Pin
Dong Kim3-Apr-08 6:38
MemberDong Kim3-Apr-08 6:38 
AnswerRe: How can I find user click Back Button at IE? Pin
Jesse Squire3-Apr-08 7:27
MemberJesse Squire3-Apr-08 7: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.