<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Email Validation</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Email Validation</description>
  <pubDate>Thu, 11 Jun 2026 16:35:32 -700</pubDate>
  <lastBuildDate>Thu, 18 Oct 2007 15:51:09 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=492</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Email Validation : Currently, the NamedRegexPattern.Email...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1689#1689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 492<br /><strong>Posted:</strong> 18-Oct-2007 at 3:51pm<br /><br />Currently, the NamedRegexPattern.Email only allows uppercase letters. It has been updated to allow lowercase letters as well. This fix will be available in the Oct. 29 release. <DIV>&nbsp;</DIV><DIV>Workarounds:</DIV><DIV><OL =1><LI =Ms&#111;normal style="COLOR: navy; mso-list: l0 level1 lfo1"><FONT color=navy><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In your app, enter an uppercase email, e.g. <a href="mailto:ANY@GMAIL.COM" target="_blank"><FONT face=Arial size=2><a href="mailto:ANY@GMAIL.COM." target="_blank">ANY@GMAIL.COM</FONT></A></SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">.</SPAN></FONT></A><LI =Ms&#111;normal style="COLOR: navy; mso-list: l0 level1 lfo1"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Override the email property to convert values to uppercase:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT> </LI></OL><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">public</SPAN></FONT> <FONT color=blue><SPAN style="COLOR: blue">override</SPAN></FONT> <FONT color=blue><SPAN style="COLOR: blue">string</SPAN></FONT> PersonalEmail {<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">get</SPAN></FONT> { <FONT color=blue><SPAN style="COLOR: blue">return</SPAN></FONT> <FONT color=blue><SPAN style="COLOR: blue">base</SPAN></FONT>.PersonalEmail.ToUpper(); }<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">set</SPAN></FONT> { <FONT color=blue><SPAN style="COLOR: blue">base</SPAN></FONT>.PersonalEmail = <FONT color=blue><SPAN style="COLOR: blue">value</SPAN></FONT>.ToUpper(); }</P><DIV></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></DIV><OL =1 start=3><LI =Ms&#111;normal style="COLOR: navy; mso-list: l0 level1 lfo1"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Create a new (corrected) email pattern and pass this into the RegexVerifier:<o:p></o:p></SPAN></FONT> </LI></OL><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; #region</SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> Verification<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; <FONT color=gray><SPAN style="COLOR: gray">///</SPAN></FONT><FONT color=green><SPAN style="COLOR: green"> </SPAN></FONT><FONT color=gray><SPAN style="COLOR: gray">&lt;summary&gt;</SPAN></FONT><FONT color=green><SPAN style="COLOR: green">Get Verifiers.</SPAN></FONT><FONT color=gray><SPAN style="COLOR: gray">&lt;/summary&gt;<o:p></o:p></SPAN></FONT></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; <FONT color=gray><SPAN style="COLOR: gray">///</SPAN></FONT><FONT color=green><SPAN style="COLOR: green"> </SPAN></FONT><FONT color=gray><SPAN style="COLOR: gray">&lt;param name="pVerifierProviderContext"&gt;</SPAN></FONT><FONT color=green><SPAN style="COLOR: green">Context in which these Verifiers are retrieved.</SPAN></FONT><FONT color=gray><SPAN style="COLOR: gray">&lt;/param&gt;<o:p></o:p></SPAN></FONT></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; <FONT color=gray><SPAN style="COLOR: gray">///</SPAN></FONT><FONT color=green><SPAN style="COLOR: green"> </SPAN></FONT><FONT color=gray><SPAN style="COLOR: gray">&lt;returns&gt;</SPAN></FONT><FONT color=green><SPAN style="COLOR: green">The verifiers.</SPAN></FONT><FONT color=gray><SPAN style="COLOR: gray">&lt;/returns&gt;<o:p></o:p></SPAN></FONT></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; &#091;<FONT color=#2b91af><SPAN style="COLOR: #2b91af">VerifierProvider</SPAN></FONT>&#093;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">public</SPAN></FONT> <FONT color=blue><SPAN style="COLOR: blue">static</SPAN></FONT> <FONT color=#2b91af><SPAN style="COLOR: #2b91af">IEnumerable</SPAN></FONT>&lt;<FONT color=#2b91af><SPAN style="COLOR: #2b91af">Verifier</SPAN></FONT>&gt; GetVerifiers(<FONT color=#2b91af><SPAN style="COLOR: #2b91af">Object</SPAN></FONT> pVerifierProviderContext) {<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#2b91af><SPAN style="COLOR: #2b91af">List</SPAN></FONT>&lt;<FONT color=#2b91af><SPAN style="COLOR: #2b91af">Verifier</SPAN></FONT>&gt; verifiers = <FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT> <FONT color=#2b91af><SPAN style="COLOR: #2b91af">List</SPAN></FONT>&lt;<FONT color=#2b91af><SPAN style="COLOR: #2b91af">Verifier</SPAN></FONT>&gt;();<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; verifiers.Add(GetEmailAddressVerifier());<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">return</SPAN></FONT> verifiers;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; }<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">private</SPAN></FONT> <FONT color=blue><SPAN style="COLOR: blue">static</SPAN></FONT> <FONT color=#2b91af><SPAN style="COLOR: #2b91af">Verifier</SPAN></FONT> GetEmailAddressVerifier() {<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#2b91af><SPAN style="COLOR: #2b91af">NamedRegexPattern</SPAN></FONT> emailPattern = <FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT> <FONT color=#2b91af><SPAN style="COLOR: #2b91af">NamedRegexPattern</SPAN></FONT>(<FONT color=#a31515><SPAN style="COLOR: #a31515">"Email"</SPAN></FONT>, <FONT color=#a31515><SPAN style="COLOR: #a31515">@"\b&#091;\w.%-&#093;+@&#091;\w.&#093;+\.&#091;a-zA-Z&#093;{2,4}\b"</SPAN></FONT>);<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#2b91af><SPAN style="COLOR: #2b91af">RegexVerifier</SPAN></FONT> v = <FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT> <FONT color=#2b91af><SPAN style="COLOR: #2b91af">RegexVerifier</SPAN></FONT>(Descriptors.PersonalEmail, <FONT color=blue><SPAN style="COLOR: blue">true</SPAN></FONT>, emailPattern);<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; v.ExecutionModes = <FONT color=#2b91af><SPAN style="COLOR: #2b91af">VerifierExecutionModes</SPAN></FONT>.OnPresetTriggers;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=blue><SPAN style="COLOR: blue">return</SPAN></FONT> v;<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; }<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face="Courier New" color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp; #endregion</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Any of the above should work, but #3 is perhaps the cleanest, and will require no change on your part when the next release comes out.<o:p></o:p></SPAN></FONT></P></DIV><span style="font-size:10px"><br /><br />Edited by eileenv - 18-Oct-2007 at 3:52pm</span>]]>
   </description>
   <pubDate>Thu, 18 Oct 2007 15:51:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1689#1689</guid>
  </item> 
  <item>
   <title>Email Validation : What am I doing wrong? </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1633#1633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 492<br /><strong>Posted:</strong> 15-Oct-2007 at 11:51am<br /><br />What am I doing wrong?]]>
   </description>
   <pubDate>Mon, 15 Oct 2007 11:51:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1633#1633</guid>
  </item> 
  <item>
   <title>Email Validation : It still fails with that. Valid...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1615#1615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 492<br /><strong>Posted:</strong> 13-Oct-2007 at 10:22am<br /><br />It still fails with that. Valid or not valid email. Then it doesn't let you out of the textbox.]]>
   </description>
   <pubDate>Sat, 13 Oct 2007 10:22:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1615#1615</guid>
  </item> 
  <item>
   <title>Email Validation : You shouldn&amp;#039;t have to call...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1611#1611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=51" rel="nofollow">eileenv</a><br /><strong>Subject:</strong> 492<br /><strong>Posted:</strong> 12-Oct-2007 at 3:39pm<br /><br />You shouldn't have to call AddTrigger since it is already added via the RegexVerifier constructor. Have you tried the following?<DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">private</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: #2b91af">Verifier</SPAN> GetEmailAddressVerifier(<SPAN style="COLOR: #2b91af">PropertyDescriptor</SPAN> pEmailDescriptor)<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><?:NAMESPACE PREFIX = O /><?:NAMESPACE PREFIX = O /><O:P></O:P></SPAN></DIV><DIV><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>{<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">RegexVerifier</SPAN> v = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">RegexVerifier</SPAN>(pEmailDescriptor, <SPAN style="COLOR: blue">true</SPAN>, <SPAN style="COLOR: #2b91af">NamedRegexPattern</SPAN>.Email);<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>v.ExecutionModes = <SPAN style="COLOR: #2b91af">VerifierExecutionModes</SPAN>.OnPresetTriggers;<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> v;<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}</SPAN></P></DIV>]]>
   </description>
   <pubDate>Fri, 12 Oct 2007 15:39:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1611#1611</guid>
  </item> 
  <item>
   <title>Email Validation : When I run the below validationon...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1595#1595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 492<br /><strong>Posted:</strong> 12-Oct-2007 at 9:31am<br /><br />When I run the below validation&nbsp;on an Email address&nbsp;it always fails and then&nbsp;I can not leave the box&nbsp;: <DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">RegexVerifier</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> v = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">RegexVerifier</SPAN>(Descriptors.EmailAddress, <SPAN style="COLOR: blue">true</SPAN>, <SPAN style="COLOR: #2b91af">NamedRegexPattern</SPAN>.Email);<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">v.AddTrigger(pEmailDescriptor);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">v.ExecutionModes = <SPAN style="COLOR: #2b91af">VerifierExecutionModes</SPAN>.InstanceAndOnPresetTriggers;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">return</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> v;</P><DIV>&nbsp;</DIV><DIV></SPAN>To try a different method, and try and trace the error a bit further, I did the below validation and got the following validation error: ((IdeaBlade.Verification.VerifierResults)(verify)).Verifier is null </DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">private</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: #2b91af">VerifierResult</SPAN> ValidEmailCondition(<SPAN style="COLOR: #2b91af">Email</SPAN> pEmail, <SPAN style="COLOR: #2b91af">TriggerContext</SPAN> triggerContext, <SPAN style="COLOR: #2b91af">VerifierContext</SPAN> verifierContext)<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: #2b91af; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">RegexVerifier</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> v = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">RegexVerifier</SPAN>(Descriptors.EmailAddress, <SPAN style="COLOR: blue">true</SPAN>, <SPAN style="COLOR: #2b91af">NamedRegexPattern</SPAN>.Email);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">VerifierResult</SPAN> verify = v.Verify(pEmail.EmailAddress, triggerContext, verifierContext);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> verify;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}<SPAN style="COLOR: gray"><o:p></o:p></SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">private</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: #2b91af">Verifier</SPAN> EmailAddressVerifier(<SPAN style="COLOR: #2b91af">PropertyDescriptor</SPAN> pEmailDescriptor)<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">string</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> description = <SPAN style="COLOR: #a31515">"Email address must in a valid email format."</SPAN>;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">DelegateVerifier</SPAN>&lt;<SPAN style="COLOR: #2b91af">Email</SPAN>&gt; verifier = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">DelegateVerifier</SPAN>&lt;<SPAN style="COLOR: #2b91af">Email</SPAN>&gt;(description, ValidEmailCondition);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>verifier.ExecutionModes = <SPAN style="COLOR: #2b91af">VerifierExecutionModes</SPAN>.InstanceAndOnPresetTriggers;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>verifier.AddTrigger(pEmailDescriptor);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN> verifier;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}</P><DIV></DIV></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Why is any email address always failing?</SPAN></DIV>]]>
   </description>
   <pubDate>Fri, 12 Oct 2007 09:31:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=492&amp;PID=1595#1595</guid>
  </item> 
 </channel>
</rss>