Dear frnds, I have created a page in which I am using Email Validators ti validate textbox for email.
Its working FINE on my "localhost" but when I upload it at brinkster.com (my ISP), its not working there !!!
I am able to click submit and get bunch of errors just because Textbox Validator is allowing user to enter invalid email addresses !!!!!
I am pasting code below. Kindly have a look....
<asp:TextBox id="txtEmail" Runat="server" Columns="40" MaxLength="30"></asp:TextBox>
<asp:RequiredFieldValidator id="ValidateEmail1" runat="server" EnableClientScript="True" ControlToValidate="txtEmail"
ErrorMessage="<br><b>Email cannot be Empty</b>" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator id="ValidateEmail2" runat="server" EnableClientScript="True" ControlToValidate="txtEmail"
ErrorMessage="<br><b>Please Enter a valid Email address</b>" Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><BR>
Will be very thankful for your reply.
Varun Sood.
Its working FINE on my "localhost" but when I upload it at brinkster.com (my ISP), its not working there !!!
I am able to click submit and get bunch of errors just because Textbox Validator is allowing user to enter invalid email addresses !!!!!
I am pasting code below. Kindly have a look....
<asp:TextBox id="txtEmail" Runat="server" Columns="40" MaxLength="30"></asp:TextBox>
<asp:RequiredFieldValidator id="ValidateEmail1" runat="server" EnableClientScript="True" ControlToValidate="txtEmail"
ErrorMessage="<br><b>Email cannot be Empty</b>" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator id="ValidateEmail2" runat="server" EnableClientScript="True" ControlToValidate="txtEmail"
ErrorMessage="<br><b>Please Enter a valid Email address</b>" Display="Dynamic" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><BR>
Will be very thankful for your reply.
Varun Sood.