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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Portal Registration IssuePortal Registration Issue
Previous
 
Next
New Post
9/6/2007 12:55 PM
 

This expression works perfectly well for me. Here is what it looks like inside the expression validator: 

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtSenderEmail_" Display="Dynamic" ErrorMessage="Email address is invalid" ValidationExpression="^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$"></asp:RegularExpressionValidator>

[edit]

You can also use this one here - really basic one, though:              \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
9/6/2007 2:12 PM
 

Hi,

It looks like I have the same thing.  Maybe I'm editing the wrong file.  I'm editing Admin > Register.ascx.  Then when I edit the user controls it takes me to User.ascx.  I then put the validation you suggested in there.

 

<td class="SubHead" width="175">

 

<dnn:label id="plEmail" runat="server" controlname="txtEmail" text="Email Address:"></dnn:label></td>

 

<td class="NormalBold" noWrap>

 

 

<asp:textbox id="txtEmail" tabIndex="6" runat="server" cssclass="NormalTextBox" size="25" maxlength="175"></asp:textbox>&nbsp;*<asp:requiredfieldvalidator id="valEmail1" runat="server" cssclass="NormalRed" display="Dynamic" errormessage="<br>Email Is Required."

 

controltovalidate="txtEmail" resourcekey="valEmail1"></asp:requiredfieldvalidator>

 

<asp:regularexpressionvalidator id="valEmail2" runat="server" cssclass="NormalRed" display="Dynamic" errormessage="<br>Email Must be Valid."

 


controltovalidate="txtEmail" resourcekey="valEmail2" ValidationExpression="a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$"></asp:regularexpressionvalidator></td>

 
New Post
9/6/2007 2:17 PM
 

Hi,

I've tried adding some static test to the user.ascx file to see if the site was indeed looking at the file was editing.  I put 'TEST' on the page somewhere and it didn't appear on my portal.  So I think I'm not editing the correct file.

 
New Post
9/6/2007 3:09 PM
 

The file is root/controls/User.ascx


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
9/6/2007 3:13 PM
 

Hi,

That is the file I'm editing....Don't know why the change is not being 'seen'.  Going to try to edit the web.config file to force a restart, empty cache and see what that does.

EDIT:

Okay i've tried the above and email validation still doesn't work.  This is really starting to get frustrating.  Maybe I should just upgrade 4.5.5.

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Portal Registration IssuePortal Registration Issue


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