How can we add a CSS file in Razor View?

 Posted by Chvrsri on 3/8/2016 | Category: ASP.NET MVC Interview questions | Views: 919 | Points: 40
Answer:

Below is the sample code to add a css file which is already located in the application folder:

<link rel="StyleSheet" href="/@Href(~Content/Style.css")" type="text/css"/>


This shows that Style.css file is in Content folder.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response