views:

40

answers:

1

How shall I apply Css Class to the root folder of my mvc application.Because when the application is not given the name of the controller and the start action it is not displaying the images and the css

+1  A: 

Hi,

I think your referring to the reference within link tag in your header?

If this is the case the best solution in my opinion is to use Url.Conent so your link tag will look something like:

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

That way no matter what the url the user is viewing the reference to the style sheet is always correct.

Simon G