I have a text box that is intended for an Email address. I am using a Regular eExppression validation control to validate the email address. When I place the following lines of code in a blank web Form, the validator works properly. <pre lang="c#"><asp:TextBox ID="Email" runat="server" CssClass="DefaultTextBox TextboxWidth" MaxLength="80"></asp:TextBox> <asp:RegularExpressionValidator ID="valEmail" runat="server" ControlToValidate="Email" ErrorMessage="Invalid Email address" SetFocusOnError="True" ToolTip="Invalid Email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator`>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)