freetextbox 在 vs.net 2008 中 怎么使用?

weblogical 2009-04-15 05:00:19
如题

这个是系统自带文档,按照这个步骤也不行呀

1. Internal Resources - All the images, javascript and xml can be streamed from inside
the FreeTextBox.dll. In ASP.NET 2.0 these files are automatically pulled from
the FreeTextBox.dll. In ASP.NET 1.x, you need to add the following httpHandler to web.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpHandlers>
<add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />
</httpHandlers>
<system.web>
<configuration>

If you are attempting to use this method and having trouble, please view the source code of your page
and see where FtbWebResource.axd is being referenced. If it appears incorrect, please set
FreeTextBox.AssemblyResourceHandlerPath to the appropriate directory where you have set your web.config.


2. External Files - If you prefer not to use the internal JavaScript and image resources
you can also have FreeTextBox link to external files which default to
~/aspnet_client/FreeTextBox/.

To use this, you need to do the following:

- Tell FreeTextBox which kind of files to look for external resources: JavaScriptLocation=ExternalFile, ToolbarImages=ExternalFile, ButtonImagesLocation=ExternalFile
- Set the SupportFolder property of your FreeTextBox instance to the directory where you copied the files. For example, if your website is stored at www.mysite.com/FreeTextBoxFiles/, you should set SupportFolder="/FreeTextBoxFiles/".

<FTB:FreeTextBox id="FreeTextBox1" SupportFolder="~/myfolder/FreeTextBox"
JavaScriptLocation="ExternalFile"
ToolbarImages="ExternalFile
ButtonImagesLocation="ExternalFile"
runat="server" />


*********************************************
Using FreeTextBox
*********************************************

To add FreeTextBox to an ASP.NET page, do the following:

1. Add the following line to the top of your page:

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>

2. Add the following code between <form runat="server"> tags:

<FTB:FreeTextBox id="FreeTextBox1" runat="Server" />
...全文
206 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
weblogical 2009-04-22
  • 打赏
  • 举报
回复
谢谢
weblogical 2009-04-22
  • 打赏
  • 举报
回复
FCK 谁有完整的 给我发一个
snoopy83101 2009-04-16
  • 打赏
  • 举报
回复
我开始也是用FreeTextBox.最后还是用了FCK和DotNetTextBox了.觉得比FreeTextBox好不少.
weblogical 2009-04-16
  • 打赏
  • 举报
回复
搞定了 谢谢大家
huang_net 2009-04-15
  • 打赏
  • 举报
回复
和VS2005一样的操作!!
wuyq11 2009-04-15
  • 打赏
  • 举报
回复
方法一样或或用fckeditor
weblogical 2009-04-15
  • 打赏
  • 举报
回复
2005 是可以。
但是到了 08 就不会用了,Version: 3.2.2
gdjlc 2009-04-15
  • 打赏
  • 举报
回复
在vs2005中用过FreeTextBox,操作如下,其它就不用管了。
1,把FreeTextBox.dll添加到左边工具箱。
2,把ftb.imagegallery.aspx复制到解决方案中。
3,在要使用编辑器的页面上直接拖FreeTextBox到页面上,把页面上生成的代码<FTB:FreeTextBox id="FreeTextBox1" runat="Server" /> 替换成如下:
<ftb:freetextbox id="FreeTextBox1" runat="server" imagegallerypath="~/images/" imagegalleryurl="ftb.imagegallery.aspx?rif={0}&cif={0}" language="zh-CN" pastemode="Default" readonly="False" toolbarlayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImage,InsertRule|Cut,Copy,Paste;Undo,Redo,Print,InsertImageFromGallery">
</ftb:freetextbox>
就可以了,其中imagegallerypath为上传路径,imagegalleryurl为ftb.imagegallery.aspx路径。
4,获取值时用FreeTextBox1.Text.Replace("'", "''")替换掉单引号。

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧