Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to use css in specific pages

$
0
0

I want to load a particular set of css and js files in a .cshtml page. I want these to override any other scripts in the _Layout.cshtml

But I also want to keep some of the scripts in the _Layout that deals with the navbar etc.

For some reason all my scripts load perfectly for my index page, but when i go to another page none of my scripts load. I have all links to the scripts in the _Layout. 

Even when I put refrences to them into the pages they don't load.

Any ideas? I know this is probably a simple question, but I have little experience with asp.net.  Thanks for any help.


Viewing all articles
Browse latest Browse all 9386

Trending Articles