Link to home
Create AccountLog in
Avatar of prain
prainFlag for United States of America

asked on

asp:ValidationSummary Question

<asp:ValidationSummary ID="dl" runat="server" ShowMessageBox="true" />

Shows both the summary (at the bottom of the page) and also the Popup Message Box with the same summary. I do not need the Summary listed at the bottom of the page. I only need the message box. How to set this up?
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of prain

ASKER

I still get the summary and the Message Box. In fact I get a blank Message Box.
Avatar of prain

ASKER

OK I see why the bank box as I was using Text="My Error Message" than ErrorMessage="My error Message". I removed the Text="My error Message" from my validators. Now the box comes up with error messages listed but the Summary still shows up at the bottom of the page.
Avatar of prain

ASKER

Aparently setting ShowSummary="false"  in the ValidationSummary did not work for me.
Avatar of prain

ASKER

Ok I added a ValidationGroup property to the Validators and the ValidationSummary. Then it works well. Cannot see what the relationship is to work with ValidationGroup.
Avatar of prain

ASKER

Thanks.