Table Question?

C

CanoeGuy

When I did classic ASP, I could build a table that has two columns above an
image that spanned the two columns, or two rows next to an image that spanned
the two rows. I would populate the table from a Recordset like this:

<CENTER>
<TABLE BORDER=1 CELLSPACING=2 CELLPADDING=2 WIDTH=600>
<%
Do While Not RS.EOF
For x = 0 To UBound(arrImage) %>
<TR BGCOLOR="#C0C0C0"><TH ALIGN=RIGHT
WIDTH=200><%=RS("Description1")%></TH><TH COLSPAN=2><%=RS("ItemNumber")%></TH>
<TR ALIGN="center">
<TD COLSPAN="3"><IMG SRC="/images/<%=arrImage(x)%>"></TD>
</TR>
<% RS.MoveNext
Next 'x
Loop 'While Not RS.EOF

How do I do this same thing in ASP.NET using a Repeater or a DataGrid or
whatever control is appropriate? I have a DataSet built to retrieve the
data, I just need help displaying it.

Thx,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,814
Members
47,359
Latest member
Claim Bitcoin Earnings. $

Latest Threads

Top