Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 979889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:17:24+00:00 2026-05-16T04:17:24+00:00

how can i dynamically display my images coming from database? I’ll be using a

  • 0

how can i dynamically display my images coming from database? I’ll be using a the image inside a list

<ul>
   <li>
      <asp:Image id="image1" runat="server" ImageUrl=""/>
   </li>
</ul>

I’m using C# on my code behind. I already created a method to display images but i dont know how can i use my method inside the list and in the image control. Do i need to use repeater to achieve this? What i want to happen is to repeat the list as many as the numbers of my images in my database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:17:25+00:00Added an answer on May 16, 2026 at 4:17 am

    A Repeater is definitely your best solution. This is how you’d set it up:

    <asp:Repeater runat="server" ID="Repeater">
        <HeaderTemplate>
           <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <asp:Image id="image1" runat="server" 
                    ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Image") %>' />
            <li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
    

    Then all you need to do is assign the DataSource and the Repeater will handle the rest:

    DataTable databaseResults = GetYourImages();
    Repeater.DataSource = databaseResults;
    Repeater.DataBind();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I dynamically display a list of 10 thumbnail images that are stored
I have some flags I store in my mysql database so I can dynamically
How can I combine multiple images, such as base image with logo and number
I wrote a javascript method to display an image dynamically depending on whether or
We are using Galleria library (http://galleria.io/) for dynamically generating slideshow from a set of
I have a few dynamically loaded images, with width and height being set inside
i'm trying to find a solution to load image names from a database and
i want to display many images and button on each image in a scroll
I use an HttpHandler to dynamically serve images in a ASP.Net web application. I
For my application I dynamically download images for results form a database. I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.