Is it possible to include a .js file in the View in asp.net mvc?
I use razor engine, MVC 3.
It looks that header is already defined in _Layout.cshtml….So I pretty much have to include all my js files in the layout file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can define an optional section in your layout file. Then in your view define it.
_Layout.cshtml
In your view