某一控件在对应的aspx.cs文件中出错, 且显示该空间id在上下文中不存在(The name '***' does not exist in the current),
解决的方法是,检查一下aspx文件头,引用cs文件的属性是哪一个(CodeFile, CodeBehind)
CodeFile: 是CodeBehind的改进版, 所以无需aspx.designer.cs文件.
而CodeBehind引用的cs文件必需要有designer文件,且该文件的内容是自动生成的, 只要aspx编辑页面重新排版(ctrl+K, ctrl+D)一下即可自动生成.
到此问题解决.