DenverUX
02-08-2007, 12:56 PM
I'm using a standard error header but I want to customize the out-of-the-box look and feel with some custom CSS.
Existing:
<asp:ValidationSummary HeaderText="Oops! Please correct the following errors and re-submit." ID="vldSummary" runat="server" DisplayMode="BulletList" CssClass="ErrorHeader" />
Which renders like this:
<div id="ctl00_cphMain_errList_vldSummary" class="ErrorHeader" style="color:Red;">Oops! Please correct the following errors and re-submit.
<ul>
<li>bla bla.</li>
</ul>
</div>
What I want to also add is something like this:
<div class="ErrorHeaderTop"></div>
<div class="ErrorHeader">Oops! Please correct the following errors and re-submit.
<ul>
<li>bla bla.</li>
</ul>
</div>
<div class="ErrorHeaderBottom"></div>
Any advise is greatly appreciated!
Existing:
<asp:ValidationSummary HeaderText="Oops! Please correct the following errors and re-submit." ID="vldSummary" runat="server" DisplayMode="BulletList" CssClass="ErrorHeader" />
Which renders like this:
<div id="ctl00_cphMain_errList_vldSummary" class="ErrorHeader" style="color:Red;">Oops! Please correct the following errors and re-submit.
<ul>
<li>bla bla.</li>
</ul>
</div>
What I want to also add is something like this:
<div class="ErrorHeaderTop"></div>
<div class="ErrorHeader">Oops! Please correct the following errors and re-submit.
<ul>
<li>bla bla.</li>
</ul>
</div>
<div class="ErrorHeaderBottom"></div>
Any advise is greatly appreciated!