Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox Validators not working when site uploaded

Status
Not open for further replies.

soodvarun

Programmer
Apr 21, 2001
40
CA
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top