![]() |
ForeColor of validationSummary control
Hi guys,
Is it possible to update this property programatically? would someone please give me a hand? The message I got back when I run one of my web pages is: Parser error "<%errorColor%>" is not a valid value for int32. Here is what I have: Public headerColor as string = "00FFFF" Public errorColor as String = "FFCC00" <TD vAlign ="top" bgColor="<%=headerColor%>"> <asp:ValidationSummary id="ValidationSummary1" runat="server" ForeColor="<%errorColor%>" Width="646px"> Also the headerColor and errorColor are programatically set by my program. Thank you Regards, Sa, |
Re: ForeColor of validationSummary control
Could you put something like this in the page_load event?
ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor) |
Re: ForeColor of validationSummary control
David,
It works, this is what I'm looking for. Thanks so lots Regards, Sam "David" <drsch3@gmail.com> wrote in message news:1142990707.780627.4630@z34g2000cwc.googlegrou ps.com... > Could you put something like this in the page_load event? > ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor) > |
| All times are GMT. The time now is 05:06 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.