Solved

Repeater Items bullets

Posted on 2009-05-18
4
507 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now