freetextbox

web页面在线编辑功能

女生的网名这么多〃 提交于 2020-03-17 06:07:44
首先 在web.config文件中添加 <system.web> <httpHandlers> <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler,FreeTextBox"/> </httpHandlers></system.web> 注意:<system.web>放在<configuration>下面即可。 其次 在用的页面上添加: <%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"%> 再其次 : 在相应的bin文件夹中添加FreeTextBox的dll即可! 最后: 要用的时候直接用 <FTB:FreeTextBox id="FreeTextBox1" runat="server"></FTB:FreeTextBox> 来源: https://www.cnblogs.com/yaosq/archive/2011/04/06/2006888.html

VS2010中错误处理:LC.exe已退出,代码为-1错误

独自空忆成欢 提交于 2020-03-15 19:37:52
说起问题的出现还有一段小故事,听我慢慢道来。你也能从这个背景中发现此问题与你遇到的是否同一问题。 我用Visual Studio 2010做ASP.NET项目开发,其中用到了HTML在线编辑器,我先使用FreeTextBox,因为这个控件非常简单。但是后来发现这个控件会生成大量的垃圾代码,尤其是从word中将表格复制到FreeTextBox中时,2列3行的简单表格生成的垃圾代码数量竟然了2000!我的个娘哎!而这个表格中实际有用的内容只有不到100个字符。看来FreeTextBox这个制造垃圾的垃圾是不能用了,寻找替代方案吧。 很久以前(大约2008年)我就使用过FCKEditor,感觉这个东西功能是很强大,但是配置起来相当麻烦,后来就使用FreeTextBox代替它。我做网站很少,基本不需要使用HTML编辑器,在少数几个需要的地方我都用FreeTextBox,并且一直工作较好,直到现在(2011年3月)遇到用户向其中复制表格为止。 这时我就必须再找另外一个替代品,就又想到了FCKEditor,到网上一查,原来这个产品升级了,不再使用FCKEditor,而是针对不同的开发工具,细化出多个版本,其中用于.NET平台的称为CKEditor.NET,于是下载下来看了下demo以及后台的源码,发现现在的CKEditor.NET使用简单,不再需要任何配置,而且经过测试很少产生垃圾代码

给FreeTextBox增加自己的按钮

混江龙づ霸主 提交于 2020-02-03 15:07:39
大家都知道 FreeTextBox 现在的版本是不开放源代码的,如果你想给它增加一些自己的东西, 看起来会比较麻烦一些,至少没有那些开源版本那样直观,但这并不能妨碍我们给 FreeTextBox 添加我们自己的按钮。 那么究竟怎么做才可以把我们需要的按钮制作成像其他按钮一样安静的放在那里,等待我们 去使用它呢?下面就介绍我的实现过程。 我的初步想法是, FreeTextBox 应该支持我们这样做,所以它可能已经给我们留了一些属性或 者 Button 集合类似的东西,让我们轻松把我们自己的按钮加到它的这个大家庭中。如果推断正确 的话,很明显,我们需要做的工作为: 1) 制作我们自己的按钮 2) 把我们的按钮添加到 FreeTextBox 的 Button 集合当中 那么就让我们去验证一下我们的想法吧。这个验证的过程,就是我们认知和熟悉 FreeTextBox 的一 个过程,我想最快的路无疑是看控件的作者留给我们的一些文档啦, FreeTextBox 的作者很理解他 的客户的想法,所以我很快在下载的该控件的一些文件中找到了很需要的东西,那就是 readme.txt 文本文件,打开,就可以看到作者对关于怎样使用 FreeTextBox 控件的一个很简单,但很有用的叙述, 阅读完后我已经觉得我当初的想法是正确的。在这里我们可以了解到,我们可以自定义我们的工 具栏的按钮(指增减已存在的按钮)

FreeTextBox javascript error is preventing PostBack on my DropDownList

此生再无相见时 提交于 2019-12-25 05:13:12
问题 I have one page with 3 FreeTextBox controls on it. They are set up correctly, and I was using them normally until I needed to add a DropDownList control that would PostBack to the server, but I was surprised to see that the OnSelectedIndexChanged event would never trigger. If I was to do a Post with a button, or some other server-side control, then would the event be triggered. After much debugging I found the following Javascript error was being thrown every time I selected something

ASP.Net Accessing child controls in a FormView control

五迷三道 提交于 2019-12-12 01:49:53
问题 I'm using a FormView control (myFormView) with an EditItemTemplate which contains a number of child controls. When I use a standard ASP.Net DropDownList control (myDropList), I can obtain a reference to myDropList using the line below: ((DropDownList)myFormView.FindControl("myDropList")) I can full access the properties of the myDropList and obtain the value currently selected. This is great. However, I now need to use a 3rd party child control (FreeTextBox as found here http://www

Isn't dangerous if I set ValidateRequest to false?

不羁的心 提交于 2019-12-10 15:16:35
问题 I'm using FreeTextBox HTML editor in some webforms in my asp.net project . if I do not set ValidateRequest property to false I get this error : A potentially dangerous Request.Form value was detected from the client It's OK in admin folder though , Because only authorized users have access to work with it . But how about public pages like sections where every users have access to leave comments(using FreeTextBox for collecting users comment ) ? Isn't risky for XSS Attack ? If the answer is

Hidden FreeTextBox bug on Firefox

时光毁灭记忆、已成空白 提交于 2019-12-07 12:22:50
问题 I have a problem with the FreeTextBox rich Text Editor in my ASP.NET site. The problem occurs when I access the site with firefox, and I have a freetextbox instance in a hidden div. The hidden div might also be an AJAX Tab Panel. The actual problem is that when the page loads it throws an uncaught exception (firebug shows the StoreHtml() function) and halts the postback!! Is anywhere of the problem and a solution for it?? Thanks 回答1: I recently met a similar problem with jQuery UI tabs. What

Convert special chars to HTML entities, without changing tags and parameters

隐身守侯 提交于 2019-12-04 02:33:19
问题 I'm using FreeTextBox editor to get some HTML created by users. The problem with this is this editor is not converting special chars in HTML entities at exception of "<>". I cannot use theHTML = Server.HtmlEncode(theHTML) , because it converts all the HTML including tags and parameters, and I don't want to create an unfinishable list of theHTML.Replace lines. Is there any other function or method available to convert to html entities but only outside tags? 回答1: If you've got a mixture of <

Convert special chars to HTML entities, without changing tags and parameters

╄→гoц情女王★ 提交于 2019-12-01 13:55:44
I'm using FreeTextBox editor to get some HTML created by users. The problem with this is this editor is not converting special chars in HTML entities at exception of "<>". I cannot use theHTML = Server.HtmlEncode(theHTML) , because it converts all the HTML including tags and parameters, and I don't want to create an unfinishable list of theHTML.Replace lines. Is there any other function or method available to convert to html entities but only outside tags? If you've got a mixture of < meaning start a tag and < meaning a literal less-than sign, you can't possibly tell which is ‘a tag’ to ignore