473,748 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1485
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$******** ******@TK2MSFTN GP03.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$******** ******@TK2MSFTN GP03.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*****@comcas t.netwrote in message
news:OO******** ******@TK2MSFTN GP03.phx.gbl...
"randy.buchholz " <ra************ @dads.state.tx. uswrote in message
news:u$******** ******@TK2MSFTN GP03.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*****@comcas t.netwrote in message
news:OO******** ******@TK2MSFTN GP03.phx.gbl...
"randy.buchholz " <ra************ @dads.state.tx. uswrote in message
news:u$******** ******@TK2MSFTN GP03.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.comwro te in message
news:eA******** ******@TK2MSFTN GP04.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$******** ******@TK2MSFTN GP03.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
3919
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 column table names. I know that there are codes to generate tabs and carriage returns, but can't find anything about including "commas" in a string to output to the file to separate the custom field names. I'd appreciate some help with a line of...
7
5809
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 that can be entered by users, these expressions are defined by another app so i can't change the format of the expressions. I've managed to support the majority of operators by supplying my own functions that wrap the equivalent Math functions but...
4
19897
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 number of colors (lets say 4) and use only these colors to color up every tag. However, with a long list of (custom) styles, it is a lot of work to scan
17
7462
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 Const xyzcErrNumBase As Long = 500 Public Const xyzcErrNumHeyDontDoThat = xyzcErrNumBase + 1 Public Const xyzcErrTxtHeyDontDoThat = "Hey! Don't do that!"
6
3255
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 query-string flag is used to indicate to the page whether it should instantiate a new instance of the object or access an existing instance from the calling page. On the both pages I have a property of the page which is an instance of this custom...
6
12857
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 being that I want some client-side information to flow to PHP, and the PHP script flow will be controlled depending on this information.
19
4918
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 exception of custom Collection Classes. Background: I'm developing an A2K .mdb to be deployed as an .mde at my current job-site. It has several custom controls which utilize custom classes to wrap built-in controls, and add additional functionality....
8
3631
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 site I FTP'd to has .Net Framework 2.0 installed. I got this error when I tried to open the site: Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details...
2
1880
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 to allow a dynamic number of control1 to appear in control2). Everything renders correctly, however I could never retrieve data on postback from my embedded controls. Upon closer inspection, all of the embedded controls output without any "name"...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.