codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How can i have different colors on a table that uses data from a database?  Archive Import (Havok0523) at 18:42 on Monday, February 03, 2003
 

Here what I have:

A ASP page using VBScript, that accesses a database with company names, then i take the info onto my page and out it in a table. Now my questions is how can i display the info from the database with rotating background colors for the table rows? Any help would be great. Thanks

  Re: How can i have different colors on a table that uses data from a database?  Archive Import (Mark Ryan) at 12:22 on Thursday, March 06, 2003
 

Hey,

I used the following to achieve the results I think you are looking for.

I dim'd variables called bground1 and bground2.
the when the table was made below I response.write'd the variables in place of the colors, i.e.,

<tr>
<td bgcolor="<%response.write bground1%>">
<font color="<%response.write fcolordesc%>">Industry:</font>
<%response.write "Precast"%>
</td>
</tr>

ignore the Industry and Precast words, they are specific to the site I was building.

hope this helps.
best,
mark

  Re: How can i have different colors on a table that uses data from a database?  Elain at 02:42 on Tuesday, November 02, 2010
 

the when the table was made below I response.write'd the variables in place of the colors, i.e.,

<tr>
<td bgcolor="<%response.write bground1%>">
<font color="<%response.write fcolordesc%>">Industry:</font>
<%response.write "Precast"%>
</td>
</tr>

ignore the Industry and Precast words, they are specific to the site I was building.

Wish the answer could help you :)
------------------------------------------------
http://mac.sothink.com/
http://www.menu-flash.com/
http://www.sothink.com/product/logo-maker/
http://www.sothink.com/product/swfeasy/









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Vertical and Horizontal Image Scroller
•  Re: FREE dating software worth over $350 for free
•  Re: How can i have different colors on a table that uses data from a database?
•  Re: How do i create somethign like this?:
•  Re: Downloading a file using http
•  Pull data from excel and display in Html page
•  Re: checkbox verification..headache!!
•  Re: button software
•  Re: never mind


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010