473,387 Members | 1,504 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,387 software developers and data experts.

Custom Color Names / Variables

While more experienced users can pretty much tell a color from its hex, new
users can't. Named colors do help with consistancy and new developers. Is
it possible to create custom named color lists (or other variables) at
design time?
Aug 15 '08 #1
5 1470
Take a look at this code sample at ASPNet101.com and see if it gives you any
ideas toward what you need:
http://www.aspnet101.com/aspnet101/a...x?code=colorvb

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
http://cg.AugustWind.com - ControlGrouper - new ASP.Net control

"randy.buchholz" <ra************@dads.state.tx.uswrote in message
news:u$**************@TK2MSFTNGP03.phx.gbl...
While more experienced users can pretty much tell a color from its hex,
new users can't. Named colors do help with consistancy and new
developers. Is it possible to create custom named color lists (or other
variables) at design time?

Aug 15 '08 #2
"randy.buchholz" <ra************@dads.state.tx.uswrote in message
news:u$**************@TK2MSFTNGP03.phx.gbl...
While more experienced users can pretty much tell a color from its hex,
new users can't. Named colors do help with consistancy and new
developers. Is it possible to create custom named color lists (or other
variables) at design time?

Sure, you can...
You can even take it much further... define not only color but font size,
borders, background...

And all this called CSS....

George.

Aug 17 '08 #3
I'm looking for true variables or things like enumerations. Not in the code
behind, but in the aspx.

"George" <no*****@comcast.netwrote in message
news:OO**************@TK2MSFTNGP03.phx.gbl...
"randy.buchholz" <ra************@dads.state.tx.uswrote in message
news:u$**************@TK2MSFTNGP03.phx.gbl...
>While more experienced users can pretty much tell a color from its hex,
new users can't. Named colors do help with consistancy and new
developers. Is it possible to create custom named color lists (or other
variables) at design time?


Sure, you can...
You can even take it much further... define not only color but font size,
borders, background...

And all this called CSS....

George.

Aug 19 '08 #4
The problem with CSS is if you apply CSS at the control level and you have
CSS on a theme you lose the theme CSS.

"George" <no*****@comcast.netwrote in message
news:OO**************@TK2MSFTNGP03.phx.gbl...
"randy.buchholz" <ra************@dads.state.tx.uswrote in message
news:u$**************@TK2MSFTNGP03.phx.gbl...
>While more experienced users can pretty much tell a color from its hex,
new users can't. Named colors do help with consistancy and new
developers. Is it possible to create custom named color lists (or other
variables) at design time?


Sure, you can...
You can even take it much further... define not only color but font size,
borders, background...

And all this called CSS....

George.

Aug 19 '08 #5
Thanks, but I have an enterprise wide set of custom colors that are not on
the standard list.

I would like to create a pallete of custom named colors to shate across the
enterprise. CSS is not an option.

"David Wier" <dw@dw.comwrote in message
news:eA**************@TK2MSFTNGP04.phx.gbl...
Take a look at this code sample at ASPNet101.com and see if it gives you
any ideas toward what you need:
http://www.aspnet101.com/aspnet101/a...x?code=colorvb

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
no bloated markup
http://cg.AugustWind.com - ControlGrouper - new ASP.Net control

"randy.buchholz" <ra************@dads.state.tx.uswrote in message
news:u$**************@TK2MSFTNGP03.phx.gbl...
>While more experienced users can pretty much tell a color from its hex,
new users can't. Named colors do help with consistancy and new
developers. Is it possible to create custom named color lists (or other
variables) at design time?


Aug 19 '08 #6

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

Similar topics

2
by: Joe Gazda | last post by:
I'm a relative newbie to PHP, but have been able to put together some PHP code to generate a CSV/XLS file from a Query result. Now, I would like to include custom column names instead of the MySQL...
7
by: netclectic | last post by:
Hi folks, i've searched and searched and can't find any example of what i'm trying to do. Essentially (i think) i need to add a new operator to Number. I'm using eval to evaluate expressions...
4
by: bart plessers | last post by:
Hello, I am making a website where the user can choose a 'skin'. This works with asp en stylesheets. In the stylesheet, a number of tags are (re)defined. The main idea is to have a limited...
17
by: Steve Jorgensen | last post by:
If you've ever employed custom error numbers and messages in you programs, you've probably ended up with code similar to what I've ended up with in the past something like... <code> public...
6
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
6
by: rithish | last post by:
Is it possible to set a custom server variable so that it may be used in the latter part of a script? Say something like $_SERVER = "myvalue", and then be able to use 'myvar' later. The reason...
19
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the...
8
by: Mark A. Sam | last post by:
Hello I am working locally with Visual Web Developer 2005 Express. Before I even installed it, the information from Microsoft was that you could FTP it to a remote site and it should work. The...
2
by: J R M | last post by:
I've developed a custom control (it's basically a drop-down list and then a couple of textboxes to include meta-data for the selection) that I'm embedding into another custom control (the idea is...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.