prain
asked on
How to get rid of Validation Summary?
Hello,
I have the following line in my ASP.NET .aspx page...
<asp:ValidationSummary ID="MyAccountValSum" runat="server" ShowMessageBox="true" ShowSummary="false" DisplayMode="SingleParagra ph" />
But when the page is validated I still see the Summary at the bottom of the page along with the MessageBox. How do I get rid of the Summary and show ONLY THE MESSAGE BOX?
I am using ASP.NET 4.5 /VS 2012
I have the following line in my ASP.NET .aspx page...
<asp:ValidationSummary ID="MyAccountValSum" runat="server" ShowMessageBox="true" ShowSummary="false" DisplayMode="SingleParagra
But when the page is validated I still see the Summary at the bottom of the page along with the MessageBox. How do I get rid of the Summary and show ONLY THE MESSAGE BOX?
I am using ASP.NET 4.5 /VS 2012
ASKER
I have seen many examples on the web including the ones you point to. I have tried several ways. Nothing works.
Here is what I have....
<asp:TextBox ID="maEmail" runat="server" Width="254px" ValidationGroup="vgMyAccou nt" ></asp:TextBox>
<asp:TextBox TextMode="Password" ID="maPassword" runat="server" Width="253px" ValidationGroup="vgMyAccou nt"></asp: TextBox>
<asp:RequiredFieldValidato r ID="reqFieldEmailMa" ForeColor="Red" ControlToValidate="maEmail " Text="Email Is Required" runat="server" ValidationGroup="vgMyAccou nt" />
<asp:RequiredFieldValidato r ID="reqFieldPasswordMa" ForeColor="Red" ControlToValidate="maPassw ord" Text="The Password field is required!" runat="server" ValidationGroup="vgMyAccou nt" />
<asp:ValidationSummary ID="MyAccountValSum" runat="server" ShowMessageBox="true" ShowSummary="false" ValidationGroup="vgMyAccou nt" />
Here is what I have....
<asp:TextBox ID="maEmail" runat="server" Width="254px" ValidationGroup="vgMyAccou
<asp:TextBox TextMode="Password" ID="maPassword" runat="server" Width="253px" ValidationGroup="vgMyAccou
<asp:RequiredFieldValidato
<asp:RequiredFieldValidato
<asp:ValidationSummary ID="MyAccountValSum" runat="server" ShowMessageBox="true" ShowSummary="false" ValidationGroup="vgMyAccou
ASKER
In fact, above is the last tried combination. I teid sevral others, - adding removing properties....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try removing DisplayMode or setting it to none.