title: MVC - Accessing css, image, js files in view folder
body: <p>In my mvc 3 application, assuming I have a folder structure like <code>\Views\Account\js\custom.js</code> How do I add that file to my view in the <code>Account\index.cshtml</code> please?</p>
  
  <p>I have tried: </p>
  
  <pre><code>&lt;script src="js/custom.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/views/account/js/custom.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="~views/account/js/custom.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>but nothing seems to work, firebug always says 404 file not found in places that are nothing like the ones I specify. (sometimes it adds extra view in the path :-s)</p>
  
  <p>I know I can put it outside the view in my own folder and access it like <code>/myFolder/myfile.js</code> and it would work but this javascript file is very intimately related to what's going on in account view and nothing else, so it would make sense to put it there..</p>
  
  <p>thanks.</p>