Click here to Skip to main content
15,911,711 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRegular Expression Validation Control is not working in Server PinPopular
Robymon22-May-09 2:28
Robymon22-May-09 2:28 
QuestionWhat is the difference between Ajax Client and Ajax Server controls? Pin
yadlaprasad22-May-09 2:10
yadlaprasad22-May-09 2:10 
AnswerRe: What is the difference between Ajax Client and Ajax Server controls? Pin
Christian Graus22-May-09 2:14
protectorChristian Graus22-May-09 2:14 
AnswerRe: What is the difference between Ajax Client and Ajax Server controls? Pin
Ramesh Swaminathan22-May-09 3:37
Ramesh Swaminathan22-May-09 3:37 
QuestionWant to get the data from one table using multi threading Pin
sjs4u22-May-09 1:57
sjs4u22-May-09 1:57 
AnswerRe: Want to get the data from one table using multi threading Pin
padmanabhan N22-May-09 2:05
padmanabhan N22-May-09 2:05 
GeneralRe: Want to get the data from one table using multi threading Pin
sjs4u22-May-09 2:12
sjs4u22-May-09 2:12 
QuestionMailMessage and regular expression not working hand in hand Pin
Brendan Vogt22-May-09 1:37
Brendan Vogt22-May-09 1:37 
Hi,

I am using the following regular expression to check for a valid e-mail address:

Regex _EmailRegex = new Regex(@"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$");

When I type in my.email.@mail.com then it validates that it is a valid email address.

So when I try the following (address, subject and body are input variables):

MailMessage msg = new MailMessage("my.email.@mail.com", address, subject, body);

The I get the following error: The specified string is not in the form required for an e-mail address.

Why does my e-mail validate to try, but when I use it in MailMessage it fails?

Please can someone advise?

Thanks
AnswerRe: MailMessage and regular expression not working hand in hand Pin
Christian Graus22-May-09 3:01
protectorChristian Graus22-May-09 3:01 
GeneralRe: MailMessage and regular expression not working hand in hand Pin
Brendan Vogt22-May-09 5:15
Brendan Vogt22-May-09 5:15 
Questionvalidation Pin
jainiraj22-May-09 1:10
jainiraj22-May-09 1:10 
AnswerRe: validation Pin
padmanabhan N22-May-09 1:42
padmanabhan N22-May-09 1:42 
AnswerRe: validation Pin
Brendan Vogt22-May-09 1:44
Brendan Vogt22-May-09 1:44 
Questionrss feed Pin
jainiraj22-May-09 1:04
jainiraj22-May-09 1:04 
QuestionMultiple Tabs Pin
MadhaviRam22-May-09 1:03
MadhaviRam22-May-09 1:03 
AnswerRe: Multiple Tabs Pin
Christian Graus22-May-09 3:00
protectorChristian Graus22-May-09 3:00 
Questionmultiple tabs Pin
MadhaviRam22-May-09 0:58
MadhaviRam22-May-09 0:58 
QuestionVal function in vb.net problem Pin
Jagz W22-May-09 0:36
professionalJagz W22-May-09 0:36 
AnswerRe: Val function in vb.net problem Pin
padmanabhan N22-May-09 0:48
padmanabhan N22-May-09 0:48 
AnswerRe: Val function in vb.net problem Pin
PauloCastilho22-May-09 3:09
PauloCastilho22-May-09 3:09 
QuestionBrowser Friendlyness Pin
M. K. BASHER22-May-09 0:31
M. K. BASHER22-May-09 0:31 
AnswerRe: Browser Friendlyness Pin
Brendan Vogt22-May-09 1:46
Brendan Vogt22-May-09 1:46 
QuestionTo format infragistics calendar control Pin
priyagee22-May-09 0:19
priyagee22-May-09 0:19 
AnswerRe: To format infragistics calendar control Pin
binarymax22-May-09 4:30
binarymax22-May-09 4:30 
GeneralRe: To format infragistics calendar control Pin
binarymax22-May-09 4:33
binarymax22-May-09 4:33 

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.