Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<div class="empLTitle">
                        Email</div>
                    <div class="empLTextBox">
                        <asp:TextBox ID="txtEmail" EnableViewState="false" CssClass="nonwatermarked" runat="server"></asp:TextBox><asp:RegularExpressionValidator
                            ID="expEmail" runat="server" ControlToValidate="txtEmail" ErrorMessage="valid email address required"
                            ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"></asp:RegularExpressionValidator></div>



please help me.
Posted

Remove RegularExpressionValidator
 
Share this answer
 
Add SetFocusOnError="true" attribute.I hope this may be a problem
 
Share this answer
 
page is postback means on button click.



apply validationgroup property for validation control and button control.
 
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