0
嗨,我將網頁應用程序轉換爲網站。我遵循這個鏈接來做到這一點。然而,我有一個錯誤的幾頁是.ascx和Global.asax。錯誤是「上下文不是...的成員」。我也排除.vbroj文件。從網絡應用程序轉換爲網站有錯誤
我在網上搜索瞭解上述錯誤,發現鏈接http://forums.asp.net/t/1148374.aspx?Context+is+not+a+member+of+Page+name+ 。雖然我做了它所說的,但錯誤沒有消失。有人會告訴我我能解決什麼問題。
總結我所做的:
1. Delete the .desginer file
2. Changed Codebehind to CodeFile
3. Change the path of the code file with full path within the root directory.
For example:
Form CodeFile=" Footer.ascx.vb" Inherits="Testing.Footer"
To CodeFile="~/Templates/Footer.ascx.vb" Inherits="Testing.Footer"