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"