hi,
I have this code to validate user email address. my RequiredFieldValidator shouldn't let me submit my email if it's blank but it's not doing that. it works locally but not when I upload it to the server. here is the code:
----------------------------------------
<asp:textbox id="txtjoinemail" Runat="server"></asp:textbox>
<asp:button id="join" runat="server" Text="Join" BorderStyle="Double"></asp:button>
<asp:RequiredFieldValidator id="RequiredFieldValidator3" Runat="server" ControlToValidate="txtjoinemail" ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:regularexpressionvalidator id="Regularexpressionvalidator1" Runat="server" ValidationExpression="^[\w\.\-_]+@([\w\.\-_]+\.)+[A-Za-z]{2,4}$" ControlToValidate="txtjoinemail">Invalid Email Format</asp:regularexpressionvalidator>
-----------------------------------------
any thoughts?
thanks in advance
I have this code to validate user email address. my RequiredFieldValidator shouldn't let me submit my email if it's blank but it's not doing that. it works locally but not when I upload it to the server. here is the code:
----------------------------------------
<asp:textbox id="txtjoinemail" Runat="server"></asp:textbox>
<asp:button id="join" runat="server" Text="Join" BorderStyle="Double"></asp:button>
<asp:RequiredFieldValidator id="RequiredFieldValidator3" Runat="server" ControlToValidate="txtjoinemail" ErrorMessage="*"></asp:RequiredFieldValidator>
<asp:regularexpressionvalidator id="Regularexpressionvalidator1" Runat="server" ValidationExpression="^[\w\.\-_]+@([\w\.\-_]+\.)+[A-Za-z]{2,4}$" ControlToValidate="txtjoinemail">Invalid Email Format</asp:regularexpressionvalidator>
-----------------------------------------
any thoughts?
thanks in advance