错误 1 类型“main_MPassword”已经包含“Lbl_note”的定义源码public partial class main_MPassword :System.Web.UI.Page{protected System.Web.UI.WebControls.TextBox NewPassword;protected System.Web.UI.WebControls.RequiredFieldValidator Req

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 03:32:41
错误1类型“main_MPassword”已经包含“Lbl_note”的定义源码publicpartialclassmain_MPassword:System.Web.UI.Page{protecte

错误 1 类型“main_MPassword”已经包含“Lbl_note”的定义源码public partial class main_MPassword :System.Web.UI.Page{protected System.Web.UI.WebControls.TextBox NewPassword;protected System.Web.UI.WebControls.RequiredFieldValidator Req
错误 1 类型“main_MPassword”已经包含“Lbl_note”的定义
源码
public partial class main_MPassword :System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox NewPassword;
protected System.Web.UI.WebControls.RequiredFieldValidator Requiredfieldvalidator1;
protected System.Web.UI.WebControls.Button Btn_ok;
protected System.Web.UI.WebControls.Button Btn_cancel;
protected System.Web.UI.WebControls.Label Lbl_note;
protected System.Web.UI.HtmlControls.HtmlForm Form1;
protected System.Web.UI.WebControls.TextBox oldpass;
protected System.Web.UI.WebControls.RequiredFieldValidator Requiredfieldvalidator2;
protected System.Web.UI.WebControls.CustomValidator Cv_id;
SqlConnection cn;

错误 1 类型“main_MPassword”已经包含“Lbl_note”的定义源码public partial class main_MPassword :System.Web.UI.Page{protected System.Web.UI.WebControls.TextBox NewPassword;protected System.Web.UI.WebControls.RequiredFieldValidator Req
我觉得你肯定是复制了一个页面,然后只改了名字,忘记改页面前台的类名了
在你的aspx页面中,第一行,Inherits这个属性,改成你后台对应那个类的名字就OK了