How to display this using the asp:Repeater ctrl?

Discussion in 'ASP .Net' started by mehdi.mousavi@gmail.com, Sep 3, 2005.

  1. Guest

    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
     
    , Sep 3, 2005
    #1
    1. Advertising

  2. Mehdi,

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

    Eliyahu

    <> wrote in message
    news:...
    > 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
    >
     
    Eliyahu Goldin, Sep 4, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danny

    Implement Ctrl-C, Ctrl-V

    Danny, Aug 14, 2003, in forum: C++
    Replies:
    5
    Views:
    661
    CBFalconer
    Aug 15, 2003
  2. Danny

    Implement Ctrl-C, Ctrl-V

    Danny, Aug 14, 2003, in forum: C Programming
    Replies:
    5
    Views:
    679
    CBFalconer
    Aug 15, 2003
  3. Angus
    Replies:
    5
    Views:
    2,171
    Michael Rauscher
    Nov 18, 2006
  4. Replies:
    2
    Views:
    1,438
    Munna
    Jul 10, 2008
  5. Replies:
    0
    Views:
    572
Loading...

Share This Page