Solved

Repeater Items bullets

Posted on 2009-05-18
4
522 Views
Last Modified: 2013-11-26
How can I make the items in a repeater "bullets" ?


<asp:Repeater ID="rpContentList" runat="server">
   <HeaderTemplate>
  </HeaderTemplate>
                                                                                                                <ItemTemplate>
                                                                                                                    <%#Container.DataItem("Information")%><br />
                                                                                                                    <br />
                                                                                                                </ItemTemplate>
                                                                                                            </asp:Repeater>

Open in new window

0
Comment
Question by:lrbrister
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:mohan_sekar
ID: 24415963
<asp:Repeater ID="rpContentList" runat="server">        
        <ItemTemplate>        
        <table>
        <tr>
        <td>
        <asp:BulletedList ID="pb" runat="server">
        </asp:BulletedList>
        <asp:BulletedList ID="cb" runat="server">
        </asp:BulletedList>
        </td>
        </tr>          
                </table>
        </ItemTemplate>
        </asp:Repeater>
0
 

Author Comment

by:lrbrister
ID: 24415985
mohan_seler
I only have one data column in the repeater...Where would I place that in your code?

<%#Container.DataItem("desc")%>
0
 
LVL 15

Accepted Solution

by:
mohan_sekar earned 500 total points
ID: 24416036
<asp:Repeater ...>
  <HeaderTemplate>
    <ul>
  </HeaderTemplate>
  <ItemTemplate>
    <li><%#Container.DataItem("desc")%></li>
  </ItemTemplate>
  <FooterTemplate>
    </ul>
  </FooterTemplate>
</asp:Repeater>
0
 

Author Closing Comment

by:lrbrister
ID: 31582755
That didn't work for wome reason in my repeater but when I changed to to a Datalist it bworked fine
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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