Name does not exist in the current context

前端 未结 11 1652
时光说笑
时光说笑 2020-12-05 12:34

So, I\'m working on this project between my laptop and my desktop.

The project works on the laptop, but now having copied the updated source code onto the desktop, I

11条回答
  •  离开以前
    2020-12-05 13:37

    I came across a similar problem with a meta tag. In the designer.cs, the control was defined as:

    protected global::System.Web.UI.HtmlControl.HtmlGenericControl metatag;
    

    I had to move the definition to the .aspx.cs file and define as:

    protected global::System.Web.UI.HtmlControl.HtmlMeta metatag;
    

提交回复
热议问题