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 7784193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:03:21+00:00 2026-06-01T20:03:21+00:00

I have an image in my database that I am able to link to

  • 0

I have an image in my database that I am able to link to using a GridView. Now I am trying to do the same thing with a ListView.

I know the column that stores the ID that I want to link to, and I know the path of my image as well. I just want to know how I would link it.

My path is ~/assets/Image/?id={0} and the column from the table is “AlbumID”.

I believe it has something to do with making an image tag in the <ItemTemplate> and link to the <%# EVal("AlbumID") %>, but I am not sure how to do it.

  • 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-06-01T20:03:22+00:00Added an answer on June 1, 2026 at 8:03 pm

    Right, you’re on the right track. This should do the trick:

    <asp:ListView ID="ListView1" runat="server">
        <ItemTemplate>
            <asp:Image ID='Image1' runat='server' ImageUrl='~/assets/Image/?id=<%#Eval("AlbumID") %>' />
        </ItemTemplate>
    </asp:ListView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string in my database that represents an image. It looks like
I have an application that stores images in a database. Now I have learned
I have entered an image in sql server database successfully. Now i want to
Image that I have a huge database which stores threads and posts from different
I am using sqlite database and i have stored the path of image in
I have some databases that have four files each; one for PRIMARY, IDX, IMAGE,
I have these images that I am getting off my server and a database
Basically I have a database with two tables, that is, Updates table and Images
I have a small image from a database and the image's average color need
I have a JPEG image (actually a BLOB in a database) which I want

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.