?
Solved

How can I use a repeater to display 4 different images within one <tr></tr>?

Posted on 2005-03-24
5
Medium Priority
?
242 Views
Last Modified: 2010-04-16
What I want to do is to display 4 different images in each row of a table using a repeater.   If this can't be done with a repeater, I'm open to solutions using a different method.

This is the code that I have but it doesn't work...

<table>
    <asp:repeater id="rprImages" runat="server">
          <ItemTemplate>
      <tr bgcolor="#00ffcc">
          <td><img src='MakeThumbnail.aspx?FileName=images/<%# DataBinder.Eval Container.DataItem, "FileName")%>' border="0">
                    </td>
                   <td><img src='MakeThumbnail.aspx?FileName=images/<%# DataBinder.Eval Container.DataItem, "FileName")%>' border="0">
                    </td>
                    <td><img src='MakeThumbnail.aspx?FileName=images/<%# DataBinder.Eval Container.DataItem, "FileName")%>' border="0">
                    </td>
                    <td><img src='MakeThumbnail.aspx?FileName=images/<%# DataBinder.Eval Container.DataItem, "FileName")%>' border="0">
                    </td>                  
                </tr>
           </ItemTemplate>
     </asp:repeater>
</table>

All help would be greatly appreciated
0
Comment
Question by:MastaGardener
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:Jesse Houwing
ID: 13624334
Unless you re-work your query to return 4 filenames per row this concept won't work.
0
 

Author Comment

by:MastaGardener
ID: 13627538
Okay...how can get 4 images in each row using a different concept?
0
 
LVL 23

Accepted Solution

by:
b1xml2 earned 2000 total points
ID: 13628325
<asp:DataList id="DataList1" runat="server" RepeatColumns="4">
<ItemTemplate><img src='MakeThumbnail.aspx?FileName=images/<%# DataBinder.Eval Container.DataItem, "FileName")%>' border="0"></ItemTemplate>
</asp:DataList>
0
 
LVL 23

Expert Comment

by:b1xml2
ID: 13628327
DataList is in-between DataGrid(most complex) and Repeater (least complex)
0
 

Author Comment

by:MastaGardener
ID: 13637183
Thanks a lot!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question