asp.net mvc 4 - Cannot load resource MVC 4 JavaScript -


i need below error. cant seem find warehousejavascript.js file outside scripts folder.

error

ref

the url /views/warehouse/warehousejavascript.js invalid, because have make request controller instead of view.

so should following:

  1. create controller warehouse not exist (i cannot see on printscreen)
  2. create action method above view
  3. in action method return view warehousejavascript
  4. in link use @url.action('warehouse','index') assuming controller name warehouse nad action index

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -