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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:59:29+00:00 2026-06-12T23:59:29+00:00

I used FileUpload control and Server.MapPath to load an image file url to database.

  • 0

I used FileUpload control and Server.MapPath to load an image file url to database. Then I want to get this image file url from database and set the Image control in Asp.Net. How can I do that?

When I load the image file url to database is look like this in database:

C:\Users\Joseph\Documents\Visual Studio 2012\Projects\cesme_pano\cesme_pano\Chrysanthemum.jpg

I set this url to Image.ImageUrl control, but it didn’t work. How can I solve this problem.

Thanks.

  • 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-12T23:59:30+00:00Added an answer on June 12, 2026 at 11:59 pm

    Maybe this is what you are looking for. What you are trying to do is convert a physical path to a virtual one that ASP.NET understands.

    The suggestion is to go:

    String RelativePath = AbsolutePath.Replace(Request.ServerVariables["APPL_PHYSICAL_PATH"], String.Empty); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i used file control in a html page i want to remove the file
I used the phonegap website to create an IPA file. Now I want to
I am working on ASP.NET3.5 platform. I have used a file upload control and
i have used fileupload control in my webpage but it show different behavior in
I've a web service,which used to access a excel file from a root directory(at
I am trying to upload a file with the FileUpload control. When file is
I use a simple FileUpload control to select a excel file, retrieve the data
I have a FileUpload control. I am trying to save the file that is
I am trying to upload a pdf file using fileupload() function in php. This
im trying to use a file upload control from the obout control library, i

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.