问题描述
我在用vs做网站出现一个错误:错误1找不到类型或命名空间名称“RoomManage_CheckOutForm”(是否缺少using指令或程序集引用?)源代码如下;//文件名:CheckOutPrint.aspx.csusingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;publicpartialclassRoomManage_CheckOutPrint:System.Web.UI.Page{privateRoomManage_CheckOutFormMyCheckOutForm;protectedvoidPage_Load(objectsender,EventArgse){MyCheckOutForm=(RoomManage_CheckOutForm)Context.Handler;this.Label1.Text=Session["MyCompanyName"].ToString()+"离店结账单";this.Label2.Text="结账编号:"+MyCheckOutForm.MyPrint结账编号;this.Label3.Text="操作人员:"+Session["MyUserName"].ToString();this.Label5.Text="入住房号:"+MyCheckOutForm.MyPrint入住房号;this.Label6.Text="客人姓名:"+MyCheckOutForm.MyPrint客人姓名;this.Label7.Text="入住编号:"+MyCheckOutForm.MyPrint入住编号;this.Label8.Text="入住日期:"+MyCheckOutForm.MyPrint入住日期;this.Label9.Text="结账日期:"+MyCheckOutForm.MyPrint结账日期;this.Label10.Text="打印日期:"+DateTime.Now.ToShortDateString();doubleMy费用金额=Convert.ToDouble(MyCheckOutForm.MyPrint预收押金)+Convert.ToDouble(MyCheckOutForm.MyPrint结账金额);this.Label11.Text="费用金额:"+My费用金额.ToString()+"元";this.Label12.Text="预收押金:"+MyCheckOutForm.MyPrint预收押金+"元";this.Label13.Text="结账金额:"+MyCheckOutForm.MyPrint结账金额+"元";this.Label14.Text=MyCheckOutForm.MyPrint店内消费+"元";this.Label15.Text=MyCheckOutForm.MyPrint住宿费+"元";this.Label16.Text=MyCheckOutForm.MyPrint电话费+"元";this.Label17.Text=MyCheckOutForm.MyPrint用餐费+"元";}}
解决方案
解决方案二:
本帖最后由 net_lover 于 2012-04-11 21:53:47 编辑
解决方案三:
提示的很明确:是否缺少using指令或程序集引用