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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:57:29+00:00 2026-05-29T19:57:29+00:00

I have got a problem with GridView because I do not understand how can

  • 0

I have got a problem with GridView because I do not understand how can I add pictures.

This code was imported by database (in GridView):

Name id

Robert 1

Robert 2

Robert 3

In designer: I clicked the GridView -> add new column -> Choose a field type -> ImageField

Header text -> “images”

Data field -> empty

Url Format String -> empty

I want to take data id from my second column in GridView and later put it in the third column –img src=”id.jpg”– this example can help me understand GridView. Can you help me?

I will try explain better:

EXAMPLE A:<asp:BoundField DataField="id" HeaderText="id" 
InsertVisible="False" ReadOnly="True" SortExpression="id" />

EXAMPLE B:<asp:ImageField HeaderText="picture" DataField="img src="id from EXAMPLE A.jpg""></asp:ImageField>
  • 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-29T19:57:32+00:00Added an answer on May 29, 2026 at 7:57 pm

    you just need to use the DataImageUrlFormatString property and ending up having your ImageField like

    <asp:ImageField 
            HeaderText="picture" 
            DataImageUrlField="id" 
            DataImageUrlFormatString="{0}.jpg" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have got a problem with do this kind of code , can't figure how
I have got a problem with my actionscript class. This is my code: package
I have got a strange problem about in_array recently which I cannot understand. e.g.
I've got a problem I can't find any solution for. I have a textfile
I've got a problem I'm not sure how best to solve. I have an
I have got a problem with my codeigniter library. To transform database data into
I have got one problem with the UITableViewController... The viewWillAppear method is not getting
I have got problem with this method: public List<int> menu_wid_w_kat() { DataSet1TableAdapters.menu_widac_wszystkoTableAdapter pk =
I have got problem with creation Mutex. I don't know why because server is
I have got a problem with two tables: CREATE TABLE IF NOT EXISTS `addresses`

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.