Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
152
rated 0 times [  159] [ 7]  / answers: 1 / hits: 15102  / 13 Years ago, thu, july 7, 2011, 12:00:00

I've used this before but i've forgotten the name of the method. I'm guessing it must be exclusive to MVC3/Razor. Is there a method that allows you to include a JavaScript or CSS file and then specify that it should be in the head. I remember it as two different methods similar to the following



IncludeJS(my.js).AtHead();
IncludeCSS(my.css).AtHead();


They might be HTML helpers but I can't find any reference to them anywhere. Am I going mad?


More From » css

 Answers
11

Check this question, best answer supposed to do what you need:
ASP.Net MVC 3 Razor: Include js file in Head tag


[#91309] Wednesday, July 6, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
janiajohnnad

Total Points: 146
Total Questions: 92
Total Answers: 107

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
janiajohnnad questions
Tue, Mar 30, 21, 00:00, 3 Years ago
Sun, Feb 7, 21, 00:00, 3 Years ago
Fri, Nov 6, 20, 00:00, 4 Years ago
Thu, Jun 18, 20, 00:00, 4 Years ago
;