使用FreeTextBox碰到的问题

这两天在使用FreeTextBox1.63汉化中文版或最新发布的3.03版,当进行编译调试的时候,出现错误。提示:找不到类型或命名空间名称“FreeTextBox1”(是否缺少 using 指令或程序集引用?)请问如何解决?

addnews.aspx:

 1 None.gif <% @ Register TagPrefix = " ftb "  Namespace = " FreeTextBoxControls "  Assembly = " FreeTextBox "   %>
 2 None.gif <% @ Page language = " c# "  Codebehind = " addnews.aspx.cs "  AutoEventWireup = " false "  Inherits = " dds2k.admin.addnews "   %>
 3 None.gif <! DOCTYPE HTML PUBLIC  " -//W3C//DTD HTML 4.0 Transitional//EN "   >
 4 None.gif < HTML >
 5 None.gif     < HEAD >
 6 None.gif         < title > addnews </ title >
 7 None.gif         < meta content = " Microsoft Visual Studio 7.0 "  name = " GENERATOR " >
 8 None.gif         < meta content = " C# "  name = " CODE_LANGUAGE " >
 9 None.gif         < meta content = " JavaScript "  name = " vs_defaultClientScript " >
10 None.gif         < meta content = " http://schemas.microsoft.com/intellisense/ie5 "  name = " vs_targetSchema " >
11 None.gif         < LINK href = " ../css/style2.css "  type = " text/css "  rel = " stylesheet " >
12 None.gif     </ HEAD >
13 None.gif     < body MS_POSITIONING = " GridLayout " >
14 None.gif         < form id = " addnews "  method = " post "  runat = " server " >
15 None.gif             < table cellSpacing = " 0 "  cellPadding = " 0 "  width = " 80% " >
16 None.gif                 < tr >
17 None.gif                     < td height = " 20 " ></ td >
18 None.gif                 </ tr >
19 None.gif             </ table >
20 None.gif             < TABLE style = " BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid "  cellSpacing = " 0 "  cellPadding = " 0 "  width = " 90% "  align = " center "  bgColor = " #ffffff "  border = " 0 " >
21 None.gif                 < TBODY >
22 None.gif                     < TR >
23 None.gif                         < TD  class = " td_title "  colSpan = " 2 "  height = " 25 " >< B > 添加新闻 </ B ></ TD >
24 None.gif                     </ TR >
25 None.gif                     < TR >
26 None.gif                         < TD  class = " content "  align = " middle "  width = " 80 "  height = " 35 " > 新闻类别: </ TD >
27 None.gif                         < TD >< asp:dropdownlist id = " NewsKindList "  Runat = " server "  Width = " 100 "  AutoPostBack = " True " ></ asp:dropdownlist ></ TD >
28 None.gif                     </ TR >
29 None.gif                     < TR >
30 None.gif                         < TD  class = " content "  align = " middle "  height = " 35 " > 新闻标题: </ TD >
31 None.gif                         < TD >< asp:textbox id = " NewsTitle "  Runat = " server "  MaxLength = " 200 "  width = " 98% "  CssClass = " input " ></ asp:textbox ></ TD >
32 None.gif                     </ TR >
33 None.gif                     < TR >
34 None.gif                         < TD  class = " content "  vAlign = " top "  align = " middle " > 新闻内容: </ TD >
35 None.gif                         < TD >< FTB:FREETEXTBOX ID = " FreeTextBox1 "  runat = " server "  ToolbarStyleConfiguration = " OfficeXP "  Width = " 98% " ></ FTB:FREETEXTBOX ></ TD >
36 None.gif                     </ TR >
37 None.gif                     < TR >
38 None.gif                         < TD align = " middle "  colSpan = " 2 " >< BR >
39 None.gif                             < asp:button id = " AddSumbit "  Runat = " Server "  Text = " 添 加 " ></ asp:button >< BR >
40 None.gif                             < BR >
41 None.gif                         </ TD >
42 None.gif                     </ TR >
43 None.gif                 </ TBODY >
44 None.gif             </ TABLE >
45 None.gif         </ form >
46 None.gif         </ TR ></ TBODY ></ TABLE ></ FORM >
47 None.gif     </ body >
48 None.gif </ HTML >
49 None.gif


addnews.aspx.cs:

 1 None.gif using  System;
 2 None.gif using  System.Collections;
 3 None.gif using  System.ComponentModel;
 4 None.gif using  System.Data;
 5 None.gif using  System.Drawing;
 6 None.gif using  System.Web;
 7 None.gif using  System.Web.SessionState;
 8 None.gif using  System.Web.UI;
 9 None.gif using  System.Web.UI.WebControls;
10 None.gif using  System.Web.UI.HtmlControls;
11 None.gif using  System.Data.SqlClient;
12 None.gif
13 None.gif namespace  dds2k.admin
14 ExpandedBlockStart.gifContractedBlock.gif dot.gif {
15ExpandedSubBlockStart.gifContractedSubBlock.gif    /**//// <summary>
16InBlock.gif    /// addnews 的摘要说明。
17ExpandedSubBlockEnd.gif    /// </summary>

18InBlock.gif    public class addnews : System.Web.UI.Page
19ExpandedSubBlockStart.gifContractedSubBlock.gif    dot.gif{
20InBlock.gif        protected System.Web.UI.WebControls.TextBox NewsTitle;
21InBlock.gif        protected System.Web.UI.WebControls.Button AddSumbit;
22InBlock.gif        protected System.Web.UI.WebControls.DropDownList NewsKindList;
23InBlock.gif
24InBlock.gif        private void Page_Load(object sender, System.EventArgs e)
25ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
26InBlock.gif            if(!Page.IsPostBack)
27ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
28InBlock.gif                BindNewsKindData();
29ExpandedSubBlockEnd.gif            }

30ExpandedSubBlockEnd.gif        }

31InBlock.gif
32InBlock.gif        private void BindNewsKindData()
33ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{   /**////清空DropDownList中的老数据
34InBlock.gif            NewsKindList.Items.Clear();
35ExpandedSubBlockStart.gifContractedSubBlock.gif            /**////从数据库获取DDS_Newskind表的数据
36InBlock.gif            SqlConnection myConnection = new SqlConnection(DataBaseDB.ConnectionString);
37ExpandedSubBlockStart.gifContractedSubBlock.gif            /**////定义向数据库NewsKinds表选择新闻种类的SQL语句
38InBlock.gif            String cmdText =" SELECT * FROM DDS_NewsKinds ";
39InBlock.gif            SqlDataAdapter myAdapter = new SqlDataAdapter(cmdText,myConnection);
40InBlock.gif            myConnection.Open();
41InBlock.gif            DataSet ds = new DataSet();
42InBlock.gif            myAdapter.Fill(ds,"DDS_NewsKinds");
43ExpandedSubBlockStart.gifContractedSubBlock.gif            /**////设定DorpListBox控件的数据源,并且设定Text和Value属性
44InBlock.gif            NewsKindList.DataSource = ds;
45InBlock.gif            NewsKindList.DataTextField = "NewsKindName";
46InBlock.gif            NewsKindList.DataValueField = "NewsKindID";
47InBlock.gif            NewsKindList.DataBind();
48InBlock.gif            myConnection.Close();
49ExpandedSubBlockEnd.gif        }

50InBlock.gif
51InBlock.gif        private void AddSumbit_Click(object sender,System.EventArgs e)
52ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
53InBlock.gif            if(NewsTitle.Text.Trim().Length > 0)
54ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
55InBlock.gif                SqlConnection myConnection = new SqlConnection(DataBaseDB.ConnectionString);
56InBlock.gif                String cmdText = "INSERT INTO DDS_News (NewsTitle,NewsBody,NewsPubdate,NewsKindID) VALUES ('"
57InBlock.gif                    + NewsTitle.Text +"','"+ FreeTextBox1.Text +"',GetDate(),'"+ Convert.ToInt32(NewsKindList.SelectedIndex) +"') ";
58InBlock.gif                SqlCommand myCommand = new SqlCommand(cmdText,myConnection);
59InBlock.gif                myConnection.Open();
60InBlock.gif                myCommand.ExecuteNonQuery();
61InBlock.gif                myConnection.Close();
62InBlock.gif                Response.Write("<script>alert(\"添加新闻成功!\")</script>");
63InBlock.gif                Response.Redirect("NewsManages.aspx");
64ExpandedSubBlockEnd.gif            }

65InBlock.gif            else
66ExpandedSubBlockStart.gifContractedSubBlock.gif            dot.gif{
67InBlock.gif                Response.Write("<script>alert(\"新闻的标题不能为空\")</script>");
68ExpandedSubBlockEnd.gif            }

69ExpandedSubBlockEnd.gif        }

70InBlock.gif
71ExpandedSubBlockStart.gifContractedSubBlock.gif        Web Form Designer generated code#region Web Form Designer generated code
72InBlock.gif        override protected void OnInit(EventArgs e)
73ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{
74InBlock.gif            //
75InBlock.gif            // CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
76InBlock.gif            //
77InBlock.gif            InitializeComponent();
78InBlock.gif            base.OnInit(e);
79ExpandedSubBlockEnd.gif        }

80InBlock.gif        
81ExpandedSubBlockStart.gifContractedSubBlock.gif        /**//// <summary>
82InBlock.gif        /// 设计器支持所需的方法 - 不要使用代码编辑器修改
83InBlock.gif        /// 此方法的内容。
84ExpandedSubBlockEnd.gif        /// </summary>

85InBlock.gif        private void InitializeComponent()
86ExpandedSubBlockStart.gifContractedSubBlock.gif        dot.gif{    
87InBlock.gif            this.AddSumbit.Click += new System.EventHandler(this.AddSumbit_Click);
88InBlock.gif            this.Load += new System.EventHandler(this.Page_Load);
89InBlock.gif
90ExpandedSubBlockEnd.gif        }

91ExpandedSubBlockEnd.gif        #endregion

92ExpandedSubBlockEnd.gif    }

93ExpandedBlockEnd.gif}

94 None.gif

转载于:https://www.cnblogs.com/netfish/archive/2005/04/27/146125.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值