hi guys...
I need to build a repeater that display data in two columns...
I'm doing something like the above
Code:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlOtrasFotos">
<ItemTemplate>
<tr>
<td width="50%" style="text-align:center ">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("URLImagen") %>' Height="190px"
Width="284px" />
<%# Eval("Descripcion") %>
</td>
</ItemTemplate>
<AlternatingItemTemplate>
<td width="50%" style="text-align:center ">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("URLImagen") %>' Height="190px"
Width="284px" />
<%# Eval("Descripcion") %>
</td>
</tr>
</AlternatingItemTemplate>
<HeaderTemplate>
<table style="border-collapse: collapse">
</HeaderTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
the problem with this is if the number of images are not odd then the alternatingitemtemplate will not render the last </tr>...
Actually this thing work on explorer and firefox, but if someone has a better way to do this I have my ears opens...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========