tag:blogger.com,1999:blog-8349059454260069992.post7772406474493258800..comments2022-03-26T08:15:53.431-05:00Comments on Techno Detritus: Complex Email Validation with Regular Expressions for Fun and ProfitAnonymoushttp://www.blogger.com/profile/11568514979551543713noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8349059454260069992.post-27969752368170878572013-03-26T08:30:13.372-05:002013-03-26T08:30:13.372-05:00Thanks Asava - I'll check that out. Cheers!Thanks Asava - I'll check that out. Cheers!Anonymoushttps://www.blogger.com/profile/11568514979551543713noreply@blogger.comtag:blogger.com,1999:blog-8349059454260069992.post-83536463282271730202013-03-26T08:28:33.959-05:002013-03-26T08:28:33.959-05:00Thanks Michael...will do, and then will post a cod...Thanks Michael...will do, and then will post a code update. Cheers!Anonymoushttps://www.blogger.com/profile/11568514979551543713noreply@blogger.comtag:blogger.com,1999:blog-8349059454260069992.post-71648047738009043342013-03-26T07:52:43.911-05:002013-03-26T07:52:43.911-05:00This is an excellent component for verifying email...This is an excellent component for verifying email addresses:<br />http://www.kellermansoftware.com/p-37-net-email-validation.aspx<br />darichkidhttps://www.blogger.com/profile/11427384867993481295noreply@blogger.comtag:blogger.com,1999:blog-8349059454260069992.post-55601826616825911342012-05-16T08:13:32.734-05:002012-05-16T08:13:32.734-05:00RFC 822 is not the standard any more. It hasn'...RFC 822 is not the standard any more. It hasn't been for a very long time. You want to look at RFC 5321.Michaelhttp://squiloople.com/noreply@blogger.comtag:blogger.com,1999:blog-8349059454260069992.post-15726008110031167312012-04-23T10:03:59.179-05:002012-04-23T10:03:59.179-05:001. Create a TextBox control on your page called &q...1. Create a TextBox control on your page called "EmailTextBox".<br /><br />2. Cretae a RegularExpressionValidator control on your page called "EmailRegularExpressionValidator".<br /><br />3. Set the ControlToValidate property of EmailRegularExpressionValidator to "EmailTextBox".<br /><br />4. In the Page_Load event of your code behind, set the ValidationExpression property of your RegularExpressionValidator control to the RegexPattern proerty of the EmailValidator object:<br />EmailRegularExpressionValidator.ValidationExpression = EmailValidator.RegexPattern;<br /><br />5. Make sure you check the Page.IsValid property at the beginning of the OnClick event of your form submission button.<br /> protected void SubmitImageButton_Click(object sender, EventArgs e)<br />{<br /> // Check for page validation<br /> Page.Validate();<br /> if (!Page.IsValid)<br /> {<br /> throw new ApplicationException("Validation error on page.");<br /> }<br /><br /> // Data entered for all controls appears to be valid!<br />}<br /><br />I hope that helps...if not, let me know.Anonymoushttps://www.blogger.com/profile/11568514979551543713noreply@blogger.comtag:blogger.com,1999:blog-8349059454260069992.post-17229638838685772852012-04-13T16:31:27.646-05:002012-04-13T16:31:27.646-05:00i think this should be obvious, but i'm new to...i think this should be obvious, but i'm new to .net... how do you implement this with a custom validator?<br /><br />thanks!willhttps://www.blogger.com/profile/06344849463011613509noreply@blogger.com