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

  • Home
  • SEARCH
  • 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 6998155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:22:31+00:00 2026-05-27T20:22:31+00:00

I need to include a link to a css file, but, the name changes.

  • 0

I need to include a link to a css file, but, the name changes.
The problem is, I am working with MSCRM 2011, and I am integrating a custom pop up window, that I need to have the “CRM style”

The link looks like this:

<LINK rel=stylesheet type=text/css href="/MyOrgtest/_common/styles/fonts.css.aspx?lcid=1033&amp;ver=-900509389">

The thing is, when I do it in a test environment (organization “MyOrgTest”) the css link names includes the organization.

So, I need to, somehow, dynamically change this link, with something like a wildcard… I don’t know, so I do not have to change the link manually.

Is this possible???

  • 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-27T20:22:32+00:00Added an answer on May 27, 2026 at 8:22 pm

    If you open your solution (Settings > Solutions > Open your solution) and select “Web Resources” you should be able to add an html page like you have done with your css file. It will have a url just like your css file:

    <Microsoft CRM URL>/WebResources/<name of Web resource>

    You can then reference your css file by a relative path like:

    <link rel="stylesheet" type="text/css" href="/styles/fonts.css" />
    

    An un-necessary alternative would be to dynamically generate the url of the css via javascript, using the context to get the server url:

    var context = GetGlobalContext();
    var serverUrl = context.getServerUrl();
    var cssPath = serverUrl + "/WebResources/styles/fonts.css";
    

    Once you had this you could check questions like this one to add the css file via javascript.

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

Sidebar

Related Questions

I am working on a multilingual website and need to include CSS file based
I have a .txt file that I need to include into a page, that
I need some help trying to match a C include file with full path
Works fine in FF/IE if I include a link to a stylesheet, but I'd
<?php include('db_connect.php'); ?><head> <link rel=stylesheet type=text/css href=comment-style.css media=screen /> <script type=text/javascript src=../jquery.tablesorter/jquery-latest.js></script> <script type=text/javascript
I have an xhtml page where I do include some css files like: <link
I am programmatically generating HTML and want to link to a CSS file that
I need to include a copyright statement at the top of every Python source
I need to include some kind of notifications in a sidebar gadget, preferably systray
I have a prototype model where I need to include the following extension methods

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.