页面html代码和后台cs代码的类名不匹配可能造成此错误。
For example:
![ContractedBlock.gif](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
![ExpandedBlockStart.gif](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
public partial class Controls_ArticleAdd : System.Web.UI.UserControl
{
![](https://www.cnblogs.com/Images/dot.gif)
}
page.aspx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ArticleAdd.ascx.cs"
Inherits="Common_Controls_ArticleAdd" %>
Controls_ArticleAdd 的不一致,导致这错误出现。