C#的OA框架出错,请高手指教
源码:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.BLL;
using COM.OA.Entity;
public partial class tzManager_addtz : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//从Session中取得信息
users user = Session["loginuser"] as users;
//判断信息 如果为空跳回登陆页面
if (user == null)
{
this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
return;
}
if (!IsPostBack)
{
this.txtTitle.Focus();
}
}
protected void btnfabu_Click(object sender, EventArgs e)
{
users user = Session["loginuser"] as users;
//用户id
int u_id = Int32.Parse(user.u_id.ToString());
//部门ID
int dept_id = user.u_dept_id;
//标题
string title = this.txtTitle.Text;
//内容
string content = this.ftbContent.Text;
//状态
int state = 0;
//阅读次数
int reads = 0;
//time
DateTime time = DateTime.Parse(DateTime.Now.ToString());
if (title !="")
{
if ( content != "")
{
sendword sw = new sendword();
sw.sw_u_id = u_id;
sw.sw_dept_id = dept_id;
sw.sw_title = title;
sw.sw_content = content;
sw.sw_state = state;
sw.sw_reads = reads;
sw.sw_releasetime = time;
int i = sendwordBLL.Insert(sw);
if (i < 0)
{
this.Response.Redirect("sendwordindex.aspx");
}
}
else
{
this.Response.Write("<script>window.alert ('请您输入内容')</script>");
this.ftbContent.Focus = true;
}
}
else
{
this.Response.Write("<script>window.alert ('请您输入标题')</script>");
this.txtTitle.Focus();
}
}
protected void btnselect_Click(object sender, EventArgs e)
{
//从页面取值
string tiaojian = this.txtwhere.Text;
//放入session
Session.Add("tiaojian", tiaojian);
//跳转到查询页面
this.Response.Write(string.Format(GetRedirect.REDIRECT, "mohuchaxun.aspx"));
}
protected void btnquxiao_Click(object sender, EventArgs e)
{
//清空文档框,标题栏获得焦点
this.txtTitle.Text = "";
this.ftbContent.Text = "";
this.txtTitle.Focus();
}
}
错误 1 “tzManager_addtz”不包含“ftbContent”的定义,并且找不到可接受类型为“tzManager_addtz”的第一个参数的扩展方法“ftbContent”(是否缺少 using 指令或程序集引用?) 。。。。\oaPro\tzManager\addtz.aspx.cs 42 31
不知道为什么,请高数指教