0
我想只有我的\ Views \ Content \ Scripts等只在我的Project.Web在asp.net MVC3。我已經移動了所有內容,但Global.asax遇到問題。瀏覽時出現404錯誤。我想要一個像將Global.asax移動到類庫asp.NET MVC3
Project
-Controllers
-Models
-Services
-Repositories
Global.asax
Global.asax.cs
Project.Web
-Content
-Scripts
-Views
可能嗎?
達林是正確的,把Global.asax想象成內容文件(如aspx或html頁面)。內容頁面從默認模板中的代碼隱藏類繼承,但可以移動到庫中。 – 2011-12-28 15:34:11
是的,達林是正確的,就像一個魅力! – 2011-12-28 15:46:49