Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I need help with the below error. It cant seem to find the WarehouseJavascript.js file which is outside the scripts folder.

error

ref

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
160 views
Welcome To Ask or Share your Answers For Others

1 Answer

The URL /Views/Warehouse/WareHouseJavascript.js is invalid, because you have to make request to controller instead of view.

So you should do following:

  1. Create controller for Warehouse it is not already exist (I cannot see it on your printscreen)
  2. Create action method for above view
  3. In action method return view WareHouseJavascript
  4. In link use @Url.Action('Warehouse','Index') assuming that controller name is Warehouse nad action is Index

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...