Click here to Skip to main content
15,904,346 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Validation Problem Pin
Shaurya_Rastogi6-Sep-07 1:58
Shaurya_Rastogi6-Sep-07 1:58 
GeneralRe: Validation Problem Pin
Imran Khan Pathan6-Sep-07 2:04
Imran Khan Pathan6-Sep-07 2:04 
GeneralRe: Validation Problem Pin
Sandeep Akhare6-Sep-07 2:05
Sandeep Akhare6-Sep-07 2:05 
GeneralRe: Validation Problem Pin
Shaurya_Rastogi6-Sep-07 2:07
Shaurya_Rastogi6-Sep-07 2:07 
GeneralRe: Validation Problem Pin
Sandeep Akhare6-Sep-07 2:09
Sandeep Akhare6-Sep-07 2:09 
QuestionValidation-------urgent Pin
Priya_20075-Sep-07 23:47
Priya_20075-Sep-07 23:47 
AnswerRe: Validation-------urgent Pin
Sandeep Akhare5-Sep-07 23:50
Sandeep Akhare5-Sep-07 23:50 
AnswerRe: Validation-------urgent Pin
Shujaat Ullah Khan6-Sep-07 0:09
Shujaat Ullah Khan6-Sep-07 0:09 
Hope this could be of some use to you parameter inside search() statement are few regular expression which you can use.

Validations using Search () Method

1. search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) :- E-Mail Field.

2. search(/^\w+((-\w+))+$/) :- Matches the occurrence of only hyphen (-) between alphanumeric values.
Eg :- Only comm-it, shujaat-khan etc. are valid only between two words.

3. search(/^\w+((\.\w+))+$/) :- Matches the occurrence of only Fullstop (.) between alphanumeric values.
Eg :- Only comm.it, shujaat.khan etc.

4. search(/^\w+((_\w+))+$/) :- Matches the occurrence of only Underscore (_) between alphanumeric values.
Eg :- Only comm_it, shujaat_khan etc.

5. search(/^\w+((\W\w+))+$/) :- Matches the occurrence of only Blank Space between alphanumeric values.
Eg :- Only comm it 123, shujaat ullah khan etc.

6. search(/^[0-9]+\.+([0-9]+)+$/) :- Matches the occurrence of only decimal values.
Eg :- Only 22.200, 39.9786 etc.

7. search(/^[0-9]+$/) :- Matches the occurrence of only numeric values.
Eg :- Only 22200, 399786 etc.

8. search(/^[A-Za-z]+$/) :- Matches the occurrence of only Alphabets values.
Eg :- Only shujaat, commit etc.

9. search(/^([A-Za-z]+[A-Za-z0-9]+$)|^[A-Za-z]+$/) :- Matches the occurrence of an Alphabet in beginning and the
others being alphanumeric values.
Eg :- Only shujaat, commit etc.

10. search(/^[A-Za-z]+[\WA-Za-z]+$/):- Matches the occurrence of only Spaces between alphabets.
Eg :- Only comm it, shujaat khan etc.

Shujaat

GeneralRe: Validation-------urgent Pin
Priya_20076-Sep-07 1:41
Priya_20076-Sep-07 1:41 
GeneralRe: Validation-------urgent Pin
Shujaat Ullah Khan6-Sep-07 1:51
Shujaat Ullah Khan6-Sep-07 1:51 
QuestionAccessing an ImageField in a GridView programmatically Pin
Rohde5-Sep-07 23:37
Rohde5-Sep-07 23:37 
AnswerRe: Accessing an ImageField in a GridView programmatically Pin
Parwej Ahamad5-Sep-07 23:59
professionalParwej Ahamad5-Sep-07 23:59 
GeneralRe: Accessing an ImageField in a GridView programmatically Pin
Rohde6-Sep-07 0:15
Rohde6-Sep-07 0:15 
Questioncustom event handler problem Pin
ekynox5-Sep-07 23:25
ekynox5-Sep-07 23:25 
AnswerRe: custom event handler problem Pin
ekynox6-Sep-07 11:03
ekynox6-Sep-07 11:03 
QuestionDetailsView loses controls state and binding after an exception occurs Pin
Alex Getman5-Sep-07 22:49
Alex Getman5-Sep-07 22:49 
QuestionTracing Pin
Priya S5-Sep-07 22:20
Priya S5-Sep-07 22:20 
AnswerRe: Tracing Pin
Parwej Ahamad5-Sep-07 22:39
professionalParwej Ahamad5-Sep-07 22:39 
GeneralRe: Tracing Pin
Priya S6-Sep-07 1:18
Priya S6-Sep-07 1:18 
AnswerRe: Tracing Pin
Sandeep Akhare5-Sep-07 23:48
Sandeep Akhare5-Sep-07 23:48 
GeneralRe: Tracing Pin
Priya S6-Sep-07 1:17
Priya S6-Sep-07 1:17 
GeneralRe: Tracing Pin
Sandeep Akhare6-Sep-07 1:50
Sandeep Akhare6-Sep-07 1:50 
AnswerRe: Tracing Pin
Shujaat Ullah Khan6-Sep-07 0:12
Shujaat Ullah Khan6-Sep-07 0:12 
GeneralRe: Tracing Pin
Priya S6-Sep-07 1:16
Priya S6-Sep-07 1:16 
GeneralRe: Tracing Pin
Shujaat Ullah Khan6-Sep-07 1:44
Shujaat Ullah Khan6-Sep-07 1:44 

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.