Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How we can validate email texbox for email value
Posted

Really.. in 8 million results you couldn't find a solution?
GOOGLE[^]
 
Share this answer
 
XML
<asp:textbox id="txt_EMail" runat="server">
   <span>(e.g.,  abc@xyz.com)</span>
   <asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" xmlns:asp="#unknown">
      ControlToValidate="txt_EMail" ErrorMessage="*" SetFocusOnError="True" 
      ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
 
Share this answer
 
v4
Comments
fjdiewornncalwe 11-Jan-12 13:57pm    
Just cleaned up your answer and added pre tags.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900