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

The Archive Base Latest Questions

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

When running my web app on my local machine i can ref css/scripts/images using:

  • 0

When running my web app on my local machine i can ref css/scripts/images using:

<link href="/Content/Site.css" rel="stylesheet" type="text/css" />

But when I deployed to my Development server, it wasn’t able to find any of my content. After researching the issue everyone suggests using the below method:

<link href="<%=Url.Content("~/Content/Site.css")%>" rel="stylesheet" type="text/css" />
<img src="<%=Url.Content("~/Content/3.png")%>" />

At least now all my content is loaded and works when I push to the development server. However now that I have the server script in there, the “Design” view in Visual Studio doesn’t load any styling/etc. I’m wondering if there is an alternative or something I’m missing that perhaps would fix this? Or maybe I’m going about it all wrong? Any input is greatly appreciated.

  • 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-16T22:07:19+00:00Added an answer on May 16, 2026 at 10:07 pm

    The suggestion you found is a great way to reference content.

    As far as Design View goes, don’t sacrifice the elegance of your code just to get Design View. Learn to love Code View. Preview in a browser. In my experience, that workflow really has no major downsides (once you get used to it).

    (As an aside, I think most of the developers who like ASP.NET MVC do not use “Design View” in Visual Studio. One of the reasons I love MVC is that it allows me to be picky about the markup. Any kind of designer lies outside that kind of thinking.)

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

Sidebar

Related Questions

We're running a web app on Tomcat 6 and Apache mod_proxy 2.2.3. Seeing a
I've got a tomcat 6 web app running with Apache httpd as the front
need ask you about some help. I have web app running in Net 2.0.
I'm developing a web app on Yaws 1.65 (installed through apt) running on Debian
We have a (non-web app) Spring application that throws a NoSuchBeanDefinitionException when running tests
Does anyone know of a simple web app that supports running ant tasks? Alternatively
We are experiencing some slowdowns on our web-app deployed on a Tomcat 5.5.17 running
I'd like to indicate to the user of a web app that a long-running
I have a very simple app on my local machine that uses the ASP.NET
I have two Jetty AppServers running a Grails Web App behind Apache 2.2 reverse

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.