页面html代码和后台cs代码的类名不匹配可能造成此错误。
For example:

page.aspx.cs
public partial class Controls_ArticleAdd : System.Web.UI.UserControl
{

}

page.aspx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ArticleAdd.ascx.cs"
Inherits="Common_Controls_ArticleAdd" %>
Controls_ArticleAdd 的不一致,导致这错误出现。
posted @ 2008-07-29 22:45
pedestrian 阅读(52)
评论(0) 编辑 收藏 网摘