How to display this using the asp:Repeater ctrl?

M

mehdi.mousavi

Hi,
Consider the following HTML:

<table border="1" width="100%">
<tr>
<td>
<img border="0" src="myimage1.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage2.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage3.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage4.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage5.jpg" width="50" height="50"></td>
</tr>
<tr>
<td>
<img border="0" src="myimage6.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage7.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage8.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage9.jpg" width="50" height="50"></td>
<td>
<img border="0" src="myimage10.jpg" width="50" height="50"></td>
</tr>
</table>

myimage1 ... myimage10 is already populated into an arraylist. How can
I display the above-mentioned html using the ASP.NET Repeater Ctrl?

TIA,
Mehdi
 
E

Eliyahu Goldin

Mehdi,

You need to use a datalist control. With it you can set property
RepeatDirection to Horizontal and RepeatColumns to 5.

Eliyahu
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top