473,382 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

ForeColor of validationSummary control

Sam
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,


Mar 22 '06 #1
2 1080
Could you put something like this in the page_load event?
ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor)

Mar 22 '06 #2
Sam
David,

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

Regards,

Sam

"David" <dr****@gmail.com> wrote in message
news:11********************@z34g2000cwc.googlegrou ps.com...
Could you put something like this in the page_load event?
ValidationSummary1.BackColor = ColorTranslator.FromHtml(errorColor)

Mar 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: newusertodotnet | last post by:
I'm trying to add a ValidationSummary control to a common base page used by all of our system's aspx/ascx files. The base page is a regular class file that inherits from System.Web.UI.Page. When I...
1
by: Ken Varn | last post by:
If a page has multiple ValidationSummary controls, how does it distinguish which ValidationControls are associated with which ValidationSummary controls? The reason I am asking this is that I...
0
by: newusertodotnet | last post by:
I'm trying to add a ValidationSummary control to a common base page used by all of our system's aspx/ascx files. The base page is a regular class file that inherits from System.Web.UI.Page. When I...
1
by: Uriah Piddle | last post by:
Hi Gang, I can't make my ValidationSummary render in red. I set the ForeColor prop to red inline and it renders black. If I set the Font-underline prop to 'True', it renders with a RED underline...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.