Solved bulletlist with graphics

Posted on 2011-10-03
Last Modified: 2012-06-21
Hi Experts

I have a bullet list in which is data bound, the list is a a user guide, what I want to do is show the list but include a graphic (graphic to be at the end of the text not the actual bullet itself), I have the image name in the db, does anyone know of a control that can do this?
Question by:MrDavidThorn
    LVL 17

    Accepted Solution

    Hi, I did this example for you, try it:
    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.OleDb" %>
    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
                // Test data...
                DataTable dtt = new DataTable();
                dtt.Columns.Add("MyText", typeof(string));
                dtt.Columns.Add("MyImage", typeof(string));
                dtt.Rows.Add("My record 1", "Graphic1.gif");
                dtt.Rows.Add("My record 2", "Graphic2.gif");
                dtt.Rows.Add("My record 3", "Graphic1.gif");
                Repeater1.DataSource = dtt;
    <html xmlns="">
    <head runat="server">
        <form id="form1" runat="server">
        <asp:Repeater ID="Repeater1" runat="server">
                    <%# Server.HtmlEncode(Eval("MyText").ToString()) %>
                    <img src="/Images/<%# Eval("MyImage") %>" alt="" />

    Open in new window

    You can download the aspx file from this link:

    You got the idea?
    LVL 17

    Expert Comment

    by:Carlos Villegas
    The namespace System.Data.OleDb in the example is not required:
    <%@ Import Namespace="System.Data.OleDb" %>

    Open in new window

    Copy/Paste error :p

    Author Comment

    thanks dude

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    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…

    755 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

    19 Experts available now in Live!

    Get 1:1 Help Now