Pimpin' Validation Summary With CSS
Posted by: AspNetResources.com articles, news and updates,
on 29 Jul 2007 |
View original | Bookmarked: 0 time(s)
Without any styling applied, ValidationSummary renders as a boring list with error messages. However, it’s easy to pretty it up with some CSS since it’s nothing more than a div with an unordered list inside.
I pretty much always put a validation summary in a master page and assign it a class:
<asp:ValidationSummary runat="server"
DisplayMode="BulletList"
CssClass="errors" />
Next, I’ll put it in a box with a red border an a humorous picture, plenty of which you...