<asp:TextBox ID="tbxEmail" runat="server" CssClass="text" Text="Email" onclick="clearTextHere(this, this.value)"
onblur="resetText(this, 'Email')"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbxEmail"
ErrorMessage="*" Display="Dynamic" SetFocusOnError="true" EnableClientScript="true"
ValidationGroup="vgroup" CssClass="required-field-indicator" InitialValue="Email">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator runat="server" ID="revEmailAddress" ControlToValidate="tbxEmail"
EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"
ValidationGroup="vgroup" CssClass="required-field-indicator">
</asp:RegularExpressionValidator>
<br />
<asp:TextBox ID="tbxVerifyEmail" runat="server" CssClass="text" Text="Email" onclick="clearTextHere(this, this.value)"
onblur="resetText(this, 'Email')"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxVerifyEmail"
ErrorMessage="*" Display="Dynamic" SetFocusOnError="true" EnableClientScript="true"
ValidationGroup="vgroup" CssClass="required-field-indicator" InitialValue="Verify Email">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="tbxVerifyEmail"
EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"
ValidationGroup="vgroup" CssClass="required-field-indicator">
</asp:RegularExpressionValidator>
<asp:CompareValidator runat="server" ID="CompareValidator1" ControlToValidate="tbxVerifyEmail"
ControlToCompare="tbxEmail" Operator="Equal" Type="String" ErrorMessage="Email not match!!"
ValidationGroup="vgroup" CssClass="required-field-indicator" Display="Dynamic" />
No comments:
Post a Comment