treehouse2008
asked on
ValidationSummary does not show error message
I used the following code to try ValidationSummary. But ValidationSummary does not show the error message. Please tell me what I missed. Thanks.
<asp:TextBox ID="txtRequired" ValidationGroup="aaa" runat="server"></asp:TextB ox>
<asp:RequiredFieldValidato r ID="valRequired" Display="Static" ControlToValidate="txtRequ ired" Text="*" ErrorMessage="Required" runat="server"></asp:Requi redFieldVa lidator>
<asp:ValidationSummary ID="val" HeaderText="Error:" Font-Names="verdana"
Font-Size="12" DisplayMode="BulletList" Enabled="true" ShowSummary="true" ValidationGroup="aaa" runat="server" />
<asp:TextBox ID="txtRequired" ValidationGroup="aaa" runat="server"></asp:TextB
<asp:RequiredFieldValidato
<asp:ValidationSummary ID="val" HeaderText="Error:" Font-Names="verdana"
Font-Size="12" DisplayMode="BulletList" Enabled="true" ShowSummary="true" ValidationGroup="aaa" runat="server" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
I have another related question. I have start a new question for it. Could you please help me with it. Thanks.
https://www.experts-exchange.com/questions/24422405/ValidationSummary-does-not-show-error-message-from-CustomValidator.html
I have another related question. I have start a new question for it. Could you please help me with it. Thanks.
https://www.experts-exchange.com/questions/24422405/ValidationSummary-does-not-show-error-message-from-CustomValidator.html
but not for RequiredFieldValidatorCont
So set ValidationGroup="aaa" for valRequired as well