整理好问题再来问吧
问题一定要明确、清晰不然怎么回答你
现在只能告诉你看一看母版页的路径

解决方案 »

  1.   

    调试一下,把异常信息展开就能看到具体错误了,
    重点检查母版页的构造函数,有直接初始化过程的字段
      

  2.   

    检查一下看是哪里没能套上母版页呢
      

  3.   

    现在打开 View.aspx.cs ,发现很多错误
     protected void Page_Load(object sender, EventArgs e)
            {
                string fullUserName = Page.User.Identity.Name;
                Permission bolPer = new Permission();            
                string UNo = gdc.GetUserinfo("rongjing", "1");
                if (!bolPer.UserIsPopedom(UNo))
                {
                    Response.Redirect("Permission.htm");
                }
                else
                {
                    if (!IsPostBack)
                    {
                        BindDDList(fullUserName);
                        BindGW1(DeptList.SelectedValue, UserList.SelectedValue);
                    }
                }
            }
    其中有这种错误:当前上下文不存在名称"DeptList",选中DeptList 按F12转到定义,说无法导航到定义,可是在View.aspx.designer.cs 中明明有:protected global::System.Web.UI.WebControls.DropDownList DeptList;你知道这是怎么回事吗???为什么我把系统的全部代码从别人那里拷贝来会有这么多问题呢