asp.net mvc 4 - Cannot load resource MVC 4 JavaScript -
i need below error. cant seem find warehousejavascript.js file outside scripts folder.
the url /views/warehouse/warehousejavascript.js
invalid, because have make request controller instead of view.
so should following:
- create controller warehouse not exist (i cannot see on printscreen)
- create action method above view
- in action method return view warehousejavascript
- in link use
@url.action('warehouse','index')
assuming controller namewarehouse
nad actionindex
Comments
Post a Comment