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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:59:19+00:00 2026-06-10T13:59:19+00:00

I have had a look at this page HTML – pick images of Root

  • 0

I have had a look at this page

HTML – pick images of Root Folder from Sub-Folder

This page contains an example for HTML images.
I have created a web control that represents footer of all the website pages. Now some pages are directly in the root and some are in another folder. In the web control I have to fix the

So without switching between ../ or ./ how can I determine the root of the website and then say something like root/images/abcd.jpg in the web control?

  • 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-10T13:59:21+00:00Added an answer on June 10, 2026 at 1:59 pm

    If you make your <img> tag a server control by adding runat="server" you can simply do the following and it will always resolve the url correctly, regardless of where the user controls is referenced:

    <img id="image" src='<%=ResolveClientUrl("~/images/abc.jpg")' />
    

    The ResolveClientUrl method will automatically resolve the correct path starting off from the root of the app (~/)

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

Sidebar

Related Questions

Apologies if this was already asked but, I have had a look and can't
I have some HTML taken from an originally printed document. It has some page
I have had a look through other questions and answers on this site but
I have had a look all over, but it doesn't seem as though my
I am a long time C# developer and have had to look at some
I have had this problem crop up a few times and I can't figure
I have had several situations when i would like to do that. This could
I have had a few problems getting this right, so I wanted to ask
I have implemented an XMLHttpRequest() call to a standalone html page which simply has
Had a idea and now trying to make it happen. Idea: Have a HTML

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.