css - ValidationSummary style not displaying in IE 6 on Post asp.net -
i posting server check db see if hold reference number. if reference number not exist set 2 custom validators invalid , change validationsummary header text. problem background colour set in css class not display. font colour display correctly.
when validation summary displayed using client side script styles displayed correctly. not sure why dont when there post back.
css
.form-box .form-error-box { background: #cd3300 url("../../../images/alert.gif") no-repeat 10px 10px; color: #ffffff; font-weight:bold; padding:10px; padding-left: 80px; min-height:55px; }
code
<asp:validationsummary id="vsummary" cssclass="form-error-box" displaymode="bulletlist" headertext="an error has occured" runat="server" backcolor="" forecolor="" />
this works in firefox , ie 8 on post not ie 6. unfortunatly have support ie 6
the solution found add height validationsummary div in ie6. not sure why happens on postback. think has ie6 auto-expansion bug ie6 bug
add following in page or masterpag include ie6 specific stylesheet:
<!--[if lte ie 6]> <link rel="stylesheet" type="text/css" href="../css/system/ie-form.css" /> <![endif]-->
ie-form stylesheet code:
.form-error-box { height:75px; }
another tip add forecolor=""
validationsummary control remove asp.net default red font color.
Comments
Post a Comment