Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ForeColor of validationSummary control

Reply
Thread Tools

ForeColor of validationSummary control

 
 
Sam
Guest
Posts: n/a
 
      03-22-2006
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,






 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      03-22-2006
Could you put something like this in the page_load event?
ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor)

 
Reply With Quote
 
 
 
 
Sam
Guest
Posts: n/a
 
      03-22-2006
David,

It works, this is what I'm looking for. Thanks so lots

Regards,

Sam

"David" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ps.com...
> Could you put something like this in the page_load event?
> ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor)
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login control FailureTextStyle ForeColor NOT SETTING jobs ASP .Net 3 10-24-2007 12:33 PM
ValidationSummary ForeColor Prop Uriah Piddle ASP .Net 1 07-27-2007 05:45 PM
validationSummary control NuB ASP .Net 0 12-12-2005 03:09 PM
ValidationSummary Control =?Utf-8?B?U3VuaWwgU2FiaXI=?= ASP .Net 2 06-16-2004 02:41 PM
control the behaviour of ValidationSummary messagebox Eitan ASP .Net 0 12-16-2003 09:19 PM



Advertisments