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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:56:07+00:00 2026-05-17T22:56:07+00:00

I wanted to combine app_themes css files into one on the fly. I did

  • 0

I wanted to combine app_themes css files into one on the fly. I did so using Mads Cristensen
technique. But now all elements that has background image defined through css (see picture) don’t display image.
alt text.
I believe that is because css files are not relatively referenced anymore (../), but through axd file.
I’m trying to fix this by changing reference to image files without success. I already tried background: url("~/App_Themes/44/images/myimage.gif") and this works for pages that combined css. But the problem is that there are other pages in this project that don’t use this css combining and now they lost reference to background images.
Any ideas?

  • 1 1 Answer
  • 1 View
  • 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-17T22:56:08+00:00Added an answer on May 17, 2026 at 10:56 pm

    I think that the ApplicationPath might be causing some confusion in this case…

    Using a logical path (relative to the web-server’s root) in the *.css file will work irrespective of whether it’s rendered natively from the App_Themes folder or through an *.axd handler.

    Take this example, for instance:

    body 
    {
        background-image:url('/WebSite1/App_Themes/Theme1/Image/Logo3.png');
    }
    

    This will resolve correctly whether it’s rendered through an *.axd handler at the root (or at any depth below the root) and it will resolve if it’s rendered at /WebSite1/App_Themes/Theme1/StyleSheet.css.

    ASP.NET specific paths beginning with ~ (so-called root relative paths) have no force in *.css files and need to first be resolved to a a logical path using ResolveUrl().

    (1) – http://www.west-wind.com/weblog/posts/132081.aspx

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

Sidebar

Related Questions

I wanted to two host user control and combine into one user control in
I wanted to use 6 different textures on a cube, one per side, but
I've always been confused on how to combine multiple MySQL queries into one. I've
How can I combine these two functions into one recursive function to have this
I wanted to combine two projects from separate remote mercurial repositories into the same
I wanted to combine 11 columns of a form into single column. here is
Wanted to know if there was a way one could query shelveset details from
I have two region say rgn1 and rgn2 . I wanted to combine both
Python newbie here and wanted to know if there was a way to combine
I think I'm doing this inefficiently right now and wanted a suggestion of how

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.