Zari Habibi
Zari Habibi

Reputation: 87

How I can display asp.net validationsummary horizontally?

I`m using asp.net validator, and now I need to dispaly validationsummary horizontally, How I can do it? tx

<asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="RegCargoMain" DisplayMode="BulletList" />

Upvotes: 0

Views: 77

Answers (1)

VDWWD
VDWWD

Reputation: 35554

You can do that with some simple CSS. Give the ValidationSummary a class and do some styling.

<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="BulletList" 
   CssClass="HorizontalSummary" />

<style>
    .HorizontalSummary li {
        float: left;
        margin-left: 40px;
    }
</style>

Upvotes: 1

Related Questions