Author: haggis999 | Posted on: 11/17/2008 4:14:37 PM | Views : 558

I am trying to make use of the emailregularexpression facility in an asp:CreateUserWizard control in my ASP.NET 3.5 website, as shown below. The regular expression itself was taken from an MSDN code sample here:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.createuserwizard.emailregularexpression.aspx

According to the MSDN article, this regular expression is supposed to make sure that the user enters their email address in a valid format, such as username@contoso.com. Unfortunately, it doesn't work for me. All valid email examples I have tried are rejected, including simple examples in the quoted sample format. I have also tried a wide range of other regular expressions from other sources and some very simple regular expressions of my own devising. All of th ...

Go to the complete details ...