G
Guest
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,
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,