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

ASP.NET

 
Generalmultiple excel sheet [modified] Pin
sanaja3-Apr-08 20:38
sanaja3-Apr-08 20:38 
GeneralDynamically populating a dropdown list in ASP.Net Pin
Shikha12343-Apr-08 19:56
Shikha12343-Apr-08 19:56 
GeneralRe: Dynamically populating a dropdown list in ASP.Net Pin
That's Aragon3-Apr-08 20:35
That's Aragon3-Apr-08 20:35 
GeneralDynamically Bind ID and Name to Link Button in Datalist Pin
sjs4u3-Apr-08 19:50
sjs4u3-Apr-08 19:50 
AnswerRe: Dynamically Bind ID and Name to Link Button in Datalist [modified] Pin
ashok@techxygen4-Apr-08 1:59
ashok@techxygen4-Apr-08 1:59 
Generalmake Pin
Mohammmed Farooq3-Apr-08 19:48
Mohammmed Farooq3-Apr-08 19:48 
QuestionDeleting folder Pin
Soumini Ramakrishnan3-Apr-08 19:32
Soumini Ramakrishnan3-Apr-08 19:32 
GeneralRe: Deleting folder Pin
Soumini Ramakrishnan4-Apr-08 1:47
Soumini Ramakrishnan4-Apr-08 1:47 
QuestionHow to Spell a Number Pin
saini arun3-Apr-08 10:49
saini arun3-Apr-08 10:49 
AnswerRe: How to Spell a Number Pin
pmarfleet3-Apr-08 10:57
pmarfleet3-Apr-08 10:57 
GeneralRe: How to Spell a Number Pin
saini arun3-Apr-08 11:18
saini arun3-Apr-08 11:18 
GeneralRe: How to Spell a Number Pin
pmarfleet3-Apr-08 11:24
pmarfleet3-Apr-08 11:24 
AnswerRe: How to Spell a Number Pin
led mike3-Apr-08 10:57
led mike3-Apr-08 10:57 
GeneralRe: How to Spell a Number Pin
saini arun3-Apr-08 11:13
saini arun3-Apr-08 11:13 
GeneralRe: How to Spell a Number Pin
led mike3-Apr-08 11:22
led mike3-Apr-08 11:22 
GeneralRe: How to Spell a Number Pin
saini arun3-Apr-08 11:31
saini arun3-Apr-08 11:31 
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 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.