We help IT Professionals succeed at work.
Get Started

How to code this script in VBScript instea of Javascript

Aleks
Aleks asked
on
335 Views
Last Modified: 2010-04-21
I have a repeated region, to which i added code to alternate the color of the rows, this is in ASP/Javascript, some of my pages are in ASP / Vbscript and i need to have this in ASP/Vbscript to work with them, can you help ?                


    <%
var RecordCounter = 0;
%>

                   <% while ((Repeat1__numRows-- != 0) && (!ClientsbyFirm.EOF)) { %>
                                     <tr>
                    <td colspan="19" background="../../Images/menus/separatortop.gif"><img src="../../Images/blank.gif" width="10" height="3"></td>
                  </tr>
                    <tr  <%
      RecordCounter++;
      if (RecordCounter % 2 == 1)
            Response.Write("bgcolor=#FBFBFB");
      %>



repeated region here



        <%
  Repeat1__index++;
  ClientsbyFirm.MoveNext();
}
%>
Comment
Watch Question
CERTIFIED EXPERT
Expert of the Year 2008
Top Expert 2008
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE