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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:01:59+00:00 2026-05-29T06:01:59+00:00

How do I bind data or info from a database table to the labels

  • 0

How do I bind data or info from a database table to the labels inside a datalist, listview or gridview ITEMTEMPLATE?

I have a table Product_table(Pro_id,pro_imagepath).

I want to have a datalist or listview in which the itemtemplate contains an image control and a label. I would like to bind the pro_imagepath to the image control inside the itemtemplate, and the pro_id to the label inside the itemtemplate.

  • 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-29T06:02:00+00:00Added an answer on May 29, 2026 at 6:02 am

    if your list view has already been databound you should just be able to use <%#Eval("pro_imagepath")%> and <%#Eval("Pro_id")%> respectively.

    To use those inside of a control you will need to do something like this.

    <asp:Image id="img1" runat="server" ImageUrl='<%#Eval("pro_imagepath")%>' />
    

    Be sure that the properties of the control you want to bind are using single quotes instead of double quotes when putting an EVAL() in them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an html table which i bind data dynamically on the server side
To start, I put my info into Core Data and I have my table
I'm using an ObjectDataSource to bind data to a GridView; it works fine except
i have problem to correctly bind data to WPF Chart. When i'm setting ItemsSource
I have a set of 'dynamic data' that I need to bind to the
I want to bind my gridview with my SQL query that is my data
I write the following code to bind the data from a background object to
I have rows loaded from the database via ajax using jquery. It grabs a
I want to trigger jQuery from a GMap info window. I have these code
please tell me how to get and bind data to UltraGrid dynamically on each

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.