Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Email ValidationexpressionEmail Validationexpression
Previous
 
Next
New Post
2/13/2007 8:07 AM
 

Has anyone found the way to change Email ValidationExpression yet?
I'm having the same problem now.....
The email filed doesn't accept "-" in the email address before @.


There is no email item in "Manage Profile Properties" edit.
I tried to modify the code in \controls\user.ascx, set the  regularexpressionvalidator enabled="false" but didn't change anything.

 
New Post
2/13/2007 1:02 PM
 

This can be done in UserInfo class (it is an attribute of the property) - you will need to recompile the Library project.

And in 4.4.1 it should accept "-" in the name.

        RegularExpressionValidator("\b[a-zA-Z0-9._%-+']+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b")> _


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
2/13/2007 10:42 PM
 

Thank you so much Charles, I was so glad when I saw your reply this morning. :D
I'm using DNN4.4.1 and with your help I found the RegularExpressionValidation String in UserInfo class in the Library, it is exactly as you post:

\b[a-zA-Z0-9._%-+']+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b

But it really doesn't accept email like kbc-a@mycompanyname.com

Maybe it's becasue of the "-" has special meaning in regular expression, so that is the only character in  [] that doesn't work, so I added a "\" in front of it as:

\b[a-zA-Z0-9._%\-+']+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b

And it works now!!

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Email ValidationexpressionEmail Validationexpression


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out