我写了一个小程序,想用 FreeTextBox 做编辑器。
可是我却不知道引用他。我把dll文件加入到引用中去了,
然后在我写的程序文件
bookconfig.cs
中加入using FreeTextBox(大小写正确),编译,报错:找不到类型或命名空间FreeTextBox;
由于在bookconfig.cs中有定义 protected FreeTextBox newContent;
当我删除using FreeTextBox和protected FreeTextBox newContent;就可以正常的编译成DLL
再加入using FreeTextBox,报相同的错误!不知道怎么弄才能弄好。知道的大哥告诉小弟弟一声
可是我却不知道引用他。我把dll文件加入到引用中去了,
然后在我写的程序文件
bookconfig.cs
中加入using FreeTextBox(大小写正确),编译,报错:找不到类型或命名空间FreeTextBox;
由于在bookconfig.cs中有定义 protected FreeTextBox newContent;
当我删除using FreeTextBox和protected FreeTextBox newContent;就可以正常的编译成DLL
再加入using FreeTextBox,报相同的错误!不知道怎么弄才能弄好。知道的大哥告诉小弟弟一声
解决方案 »
- ASP.NET 中如何给地址栏加密
- asp.net 应该怎么调试错误?
- pic 既不是表 Orders 的 DataColumn 也不是 DataRelation。 ??
- 关于Datalist控件如何使用虚线做分隔符啊.
- 请教,如何在自动绑定列的DataGrid上再动态地添加几列?
- Asp.Net Forums 使用的一个问题
- DataGrid的URL字段里如何传入两个参数?
- 请问!为什么不能添加用户控件?
- MVC 的一个上传问题···初学MVC···
- 放100分请大家调调这个简单程序
- The compiler failed with error code 128错误的问题
- 我怎么可以得到dataset中指定的数据
(1) 复制 bin 目录下的 FreeTextBox.dll 文件到你的 Web 应用程序目录中的 bin 目录或其上层的虚拟目录下的 bin 目录,
并添加引用;
(2) 复制 HelperScripts 目录下的三个文件到你的 Web 应用程序目录中,
或其子目录中,这时注意使用时要指定 HelperFilePath 属性 this.FreeTextBox1.HelperFilesPath="HelperScripts";;
并将此目录及文件添加到工程。 (3) 复制 images 目录下的 ftb 目录--到-->你的 Web 站点根目录下的 images 目录中。页面:
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %> <FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" />后台.CS代码:
using FreeTextBoxControls;if(!IsPostBack)
{
FreeTextBox1.AutoConfigure = AutoConfigure.EnableAll;
this.FreeTextBox1.HelperFilesPath="HelperScripts";
this.FreeTextBox1.ImageGalleryPath="images"; FreeTextBox1.Text = "<P><B><FONT face=arial><FONT size=3><FONT color=green>Free</FONT>TextBox 1.6.3</FONT></B></P><P>"
+"作者: <a href=\"http://www.freetext.com\" target=\"_blank\">litianping</a><BR>"
+"译者: ltp<<a href=\"mailto:[email protected]\">[email protected]</a>></P></FONT>";
}
(1) 复制 bin 目录下的 FreeTextBox.dll 文件到你的 Web 应用程序目录中的 bin 目录或其上层的虚拟目录下的 bin 目录,
并添加引用;
(2) 复制 HelperScripts 目录下的三个文件到你的 Web 应用程序目录中,
或其子目录中,这时注意使用时要指定 HelperFilePath 属性 this.FreeTextBox1.HelperFilesPath="HelperScripts";;
并将此目录及文件添加到工程。 (3) 复制 images 目录下的 ftb 目录--到-->你的 Web 站点根目录下的 images 目录中。页面:
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %> <FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" />后台.CS代码:
using FreeTextBoxControls;if(!IsPostBack)
{
FreeTextBox1.AutoConfigure = AutoConfigure.EnableAll;
this.FreeTextBox1.HelperFilesPath="HelperScripts";
this.FreeTextBox1.ImageGalleryPath="images"; FreeTextBox1.Text = "<P><B><FONT face=arial><FONT size=3><FONT color=green>Free</FONT>TextBox 1.6.3</FONT></B></P><P>"
+"作者: <a href=\"http://www.freetext.com\" target=\"_blank\">litianping</a><BR>"
+"译者: ltp<<a href=\"mailto:[email protected]\">[email protected]</a>></P></FONT>";
}