Asp.net bulletlist with graphics

Hi Experts

I have a bullet list in asp.net 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?
MrDavidThornAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carlos VillegasFull Stack .NET DeveloperCommented:
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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;
            Repeater1.DataBind();
        }
    }

</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <%# Server.HtmlEncode(Eval("MyText").ToString()) %>
                <img src="/Images/<%# Eval("MyImage") %>" alt="" />
            </li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
    </form>
</body>
</html>

Open in new window


You can download the aspx file from this link:
http://dl.dropbox.com/u/13237304/EE/RepeaterExample.zip

You got the idea?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Carlos VillegasFull Stack .NET DeveloperCommented:
The namespace System.Data.OleDb in the example is not required:
<%@ Import Namespace="System.Data.OleDb" %>

Open in new window

Copy/Paste error :p
MrDavidThornAuthor Commented:
thanks dude
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.