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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -