Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   ForeColor of validationSummary control (http://www.velocityreviews.com/forums/t122076-forecolor-of-validationsummary-control.html)

Sam 03-22-2006 12:34 AM

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,







David 03-22-2006 01:25 AM

Re: ForeColor of validationSummary control
 
Could you put something like this in the page_load event?
ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor)


Sam 03-22-2006 02:52 AM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57