Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6081795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:12:57+00:00 2026-05-23T11:12:57+00:00

I know nothing about .asp we are just skinning an interface and i need

  • 0

I know nothing about .asp we are just skinning an interface and i need to style every other table row so its grey white grey white etc…

zebra-style table? odd and even rows
with different background-color?

Here is the code.

<table id="table1" class="tablesorter">
<thead> 
<tr align = "center" ><td><h4>Description</h4></td><td><h4>Comments</h4></td><td><h4>Annual Cost</h4></td><td width = "15%">&nbsp;</td></tr>
</thead> 
<tbody> 
<%
if isnull(floorcosts) then
    Response.Write("<tr><td colspan = '4'>&nbsp;</td></tr>")
    Response.Write("<tr><td colspan = '4' align = 'center' style='font-size:16pt;font-style:bold;'>No Floor Costs Defined</td></tr>")

else
    dim i
    for i = 0 to ubound(floorcosts,1)
        Response.Write("<tr align = 'center' id = 'r" & i & "'><td>" & floorcosts(i,0) & "</td><td>" & floorcosts(i,2) & "</td><td align='right'>" & FormatCurrency(floorcosts(i,1)) & "</td>")
        Response.Write("<td><a href = 'floorcosts.asp?t=" & i & "'><img src = 'images/edit.png' height = '25' width = '25' alt = 'Edit' title = 'Edit Cost' /></a>&nbsp;&nbsp;&nbsp;")
        Response.Write("<a href = 'javascript:delrec(" & i & ")'><img src = 'images/delete.png' height = '25' width = '25' alt = 'Delete' title = 'Delete Cost'/></a></td></tr>")       
    next
end if
%>
</tbody> 
</table>

i have got a style the i want to drop on every other row.

<tr class="grey_row">

how can i implement this throughout the .asp loop.

Can someone please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:12:57+00:00Added an answer on May 23, 2026 at 11:12 am

    the only place i see where you can do this is:

    Response.Write("<tr align = 'center' id = 'r" & i & "'><td>" &
    

    you may try to replace it with

    Response.Write("<tr class='grey_row' align = 'center' id = 'r" & i & "'><td>" &
    

    zebra style code:

     dim cl
     for i = 0 to ubound(floorcosts,1)
       if i mod 2 = 0 then
         cl = "grey_row"
       else
         cl = "white_row"
       end if
       Response.Write("<tr class='"&cl&"' id = 'r" & i & "'><td>" & floorcosts(i,0) & "</td><td>" & floorcosts(i,2) & "</td><td align='right'>" & FormatCurrency(floorcosts(i,1)) & "</td>")
       Response.Write("<td><a href = 'floorcosts.asp?t=" & i & "'><img src = 'images/edit.png' height = '25' width = '25' alt = 'Edit' title = 'Edit Cost' /></a>&nbsp;&nbsp;&nbsp;")
       Response.Write("<a href = 'javascript:delrec(" & i & ")'><img src = 'images/delete.png' height = '25' width = '25' alt = 'Delete' title = 'Delete Cost'/></a></td></tr>")       
     next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know nothing about Xcode, except it's a Developer interface from Apple that actually
Well, I know absolutely nothing about the subject, so I really need help. I
I know nothing about flash. I only need to change a few variables in
I know next to nothing about databases, but need to store and present user
i know nothing about medical records but im sure there's great opportunity in it
I'm a Windows developer... I know nothing about Apple Mac OS X. In Windows
I know almost nothing about linq. I'm doing this: var apps = from app
I know almost nothing about cryptography, but I would like to figure out how
Here is my situation: I know almost nothing about Perl, but it is the
First off, I know next to nothing about language theory, and I barely know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.