Dispalying Alert Box for Validation Controls

Validation Summary

<asp:ValidationSummary ID=”ValidationSummary1″ ValidationGroup=”TEST” ShowMessageBox=”true” runat=”server” EnableClientScript=”true” ShowSummary=”false” />

Required Field Validator

<asp:RegularExpressionValidator ID=”revEmail” runat=”server” ErrorMessage=”Enter email id seperated with comma”  Text=” ” Display=”None”
ControlToValidate=”txtEmail” ValidationGroup=”TEST” ValidationExpression=”^([\w+-.%]+@[\w-.]+\.[A-Za-z]{2,4},?)+$”></asp:RegularExpressionValidator>


<asp:LinkButton ID=”lbEmail” ToolTip=”Edit Email” runat=”server”  ValidationGroup=”TEST” OnClick=”lbEmail_Click”>Edit</asp:LinkButton>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s