Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 17th, 2005, 09:27 PM
computertherapi computertherapi is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 1 computertherapi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 13 sec
Reputation Power: 0
sql query category determines row color

Trying to create a asp that when a sql data base is queried and a word example in column "nvarchar5" = 'orange' or 'red' appears, then the color of that row changes

Reply With Quote
  #2  
Old June 2nd, 2005, 10:16 AM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
Click here for more information.
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,061 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 12 h 26 m 32 sec
Reputation Power: 1576
Facebook
Quote:
Originally Posted by computertherapi
Trying to create a asp that when a sql data base is queried and a word example in column "nvarchar5" = 'orange' or 'red' appears, then the color of that row changes


After you query the database, set it to a value like rowcolor.

Then in your table,

Code:
<tr bgcolor="<%=rowcolor%>">


Hope this helps.

Reply With Quote
  #3  
Old June 3rd, 2005, 08:36 AM
sickmusic sickmusic is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 9 sickmusic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 38 m 9 sec
Reputation Power: 0
did something similar, but used styles

Code:
<tr class="<%=rowStyle%>">


which is set in a condition statement in a Query as jmurrayhead has said.

I prefer having full control in the css. but down to ur personal preference.

Reply With Quote
  #4  
Old June 3rd, 2005, 10:05 AM
jmurrayhead's Avatar
jmurrayhead jmurrayhead is offline
The Drunken Moderator
Click here for more information.
 
Join Date: Feb 2004
Location: Reston, VA, USA
Posts: 13,061 jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)jmurrayhead User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced FolderFolding Points: 81609 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 12 h 26 m 32 sec
Reputation Power: 1576
Facebook
Quote:
Originally Posted by sickmusic
did something similar, but used styles

Code:
<tr class="<%=rowStyle%>">


which is set in a condition statement in a Query as jmurrayhead has said.

I prefer having full control in the css. but down to ur personal preference.


I do agree with sickmusic. Using CSS would give you full control, but you would still be using the same basic idea.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > sql query category determines row color


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway