我安装 mvc3 ,下载源码编译后报 Error 133 The name 'ViewBag' does not exist in the current context。
2个回答
展开全部
错误提示:命名‘ViewModel’不于当前上下文存在 ,你在网上下的可能与你的项目名称有冲突或是一些方法名称未定义才会出现该类错误,你把你的项目中的一些名字看下有哪些是需要修改的,问题应该都不大,希望采纳,有什么问题可以随时再问我..
This sounds like a problem with your ASPX page. You may want to check that DetailsView1 exists in your .aspx.designer.cs file. As there should be a declaration line: protected global::System.Web.UI.WebControls.DetailsView DetailsView1 My guess is that this is missing, or that the name of the classes for aspx.cs and aspx.designer.cs maybe different.Hope this helps.
This sounds like a problem with your ASPX page. You may want to check that DetailsView1 exists in your .aspx.designer.cs file. As there should be a declaration line: protected global::System.Web.UI.WebControls.DetailsView DetailsView1 My guess is that this is missing, or that the name of the classes for aspx.cs and aspx.designer.cs maybe different.Hope this helps.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询