求关于FreeTextBox3.0的用法 我下载了FreeTextBox3.0,我想知道除了把DLL文件引用之后,在项目里要怎么配置啊,也要想1.6.3一样配置吗?如果有例子,发给我看一下好吗 邮箱是[email protected] 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.先把freetextbox.dll添加到项目中2.把 - ftb.colorpicker.aspx - ftb.imagegallery.aspx - ftb.inserttable.aspx从文件夹HelperScripts复制出来,放到外面与 - test.aspx (测试)同等级目录,(不这么做,插入背景色,图片,表格就不好使)3.把images文件夹放到test.aspx (测试)同等级目录下,来存放上传的图片.4.在test.aspx 中,加图片的路径<FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" ButtonPath="\images\ftb\office2003\"/>this.FreeTextBox1.Text 这个就是FTB中你输入的文本的内容,这是带HTML标记的this.FreeTextBox1.HtmlStrippedText 这个是将HTML标记去掉的文本5.写入数据库在CSDN上看到朋友们说怎么把FreeTextBox内容写入数据库中我做了一下.就是把所有产生的HTML代码都插入数据库的一个字段中可以做一个新闻表news字段ID(自增) content addtime(getdate) private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if (!IsPostBack) { SqlConnection myConn = new SqlConnection("server=(local);database=mm;uid=sa;pwd=123"); SqlCommand myCmd = new SqlCommand("select * from test where id=2",myConn); myConn.Open(); SqlDataReader myDr; myDr=myCmd.ExecuteReader(); myDr.Read(); Response.Write(myDr["content"].ToString()); myDr.Close(); myConn.Close(); } } private void Button1_Click(object sender, System.EventArgs e) { SqlConnection myConn = new SqlConnection("server=(local);database=mm;uid=sa;pwd=123"); SqlCommand myCmd = new SqlCommand("insert into test (content) values('"+FreeTextBox1.Text+"')",myConn); myConn.Open(); myCmd.ExecuteNonQuery(); myConn.Close(); }[注]web.config在system.web节加入: <pages validateRequest="false"/>其实里面应该有简单得例子,怎么不看看呢 我下载下来的FreeTextBox3.0没有你说的那么多文件啊我是从http://www.freetextbox.com/下载的里面也没有说明文档啊1.6.3的我用过,但是3.0好像和1.6.3不一样,上面的点击按钮也多了好多啊但是我的却显示的和1.6.3的一样的 在web.config的system.web节点下加入:<httpHandlers> <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" /></httpHandlers> TO: mapserver(杨东):我按照你的方法添加了,出现这个错误未能从程序集 FreeTextBox 中加载类型 FreeTextBoxControls.AssemblyResourceHandler还有我下载的3.0中有ftb.imagegallery文件和一个aspnet_client文件夹,有什么用啊,我应该怎么用它 从BS到CS的单点登录 ajaxToolkit:ReorderList 排序问题 关于iframe显示的问题,求打通任督脉。 showModalDialog问题刷新父 求助,关于listbox给textbox控件赋值的问题 关于requiredfieldvalidator的几个问题? "无法找到网页"--IIS配置问题 使用ajax向数据写入数据有没有漏洞??? 关于页面间通讯问题!! 如何用CrystalReport显示一个自定义的DataTable? FreeTextBox中如何动态设置图片上传路径 dataGrid的行随着记录集的多少变高的问题
- ftb.imagegallery.aspx
- ftb.inserttable.aspx
从文件夹HelperScripts复制出来,放到外面与 - test.aspx (测试)同等级目录,
(不这么做,插入背景色,图片,表格就不好使)3.把images文件夹放到test.aspx (测试)同等级目录下,来存放上传的图片.4.在test.aspx 中,加图片的路径
<FTB:FreeTextBox id="FreeTextBox1" runat="server" Width="700" ButtonPath="\images\ftb\office2003\"/>this.FreeTextBox1.Text 这个就是FTB中你输入的文本的内容,这是带HTML标记的this.FreeTextBox1.HtmlStrippedText 这个是将HTML标记去掉的文本5.写入数据库
在CSDN上看到朋友们说怎么把FreeTextBox内容写入数据库中
我做了一下.就是把所有产生的HTML代码都插入数据库的一个字段中
可以做一个新闻表
news
字段ID(自增) content addtime(getdate)
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if (!IsPostBack)
{
SqlConnection myConn = new SqlConnection("server=(local);database=mm;uid=sa;pwd=123");
SqlCommand myCmd = new SqlCommand("select * from test where id=2",myConn);
myConn.Open();
SqlDataReader myDr;
myDr=myCmd.ExecuteReader();
myDr.Read();
Response.Write(myDr["content"].ToString());
myDr.Close();
myConn.Close();
}
} private void Button1_Click(object sender, System.EventArgs e)
{
SqlConnection myConn = new SqlConnection("server=(local);database=mm;uid=sa;pwd=123");
SqlCommand myCmd = new SqlCommand("insert into test (content) values('"+FreeTextBox1.Text+"')",myConn);
myConn.Open();
myCmd.ExecuteNonQuery();
myConn.Close();
}[注]web.config
在system.web节加入:
<pages validateRequest="false"/>其实里面应该有简单得例子,怎么不看看呢
我是从http://www.freetextbox.com/下载的
里面也没有说明文档啊
1.6.3的我用过,但是3.0好像和1.6.3不一样,上面的点击按钮也多了好多啊
但是我的却显示的和1.6.3的一样的
<httpHandlers>
<add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
</httpHandlers>
未能从程序集 FreeTextBox 中加载类型 FreeTextBoxControls.AssemblyResourceHandler
还有我下载的3.0中有ftb.imagegallery文件和一个aspnet_client文件夹,有什么用啊,
我应该怎么用它