FreeTextBox3.1.6在.Net2.0中使用
http://freetextbox.com/default.aspx 这里有FreeTextBox3.1.6的下载
对于.Net2.0来说,配置起来相对简单了很多
只需把 Framework-2.0 里面的 FreeTextBox.dll Copy到项目的bin文件夹底下(未编译之前需要手工创建)
然后创建一个Aspx页面,比如说Default.aspx,在页面里添加
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
然后在<form runat="server">里添加<FTB:FreeTextBox id="FreeTextBox1" runat="Server" />
这样最基本的配置就做完了,你可用他来发布新闻了...简单吧
当然,这样还不足够我们使用,最起码我们也应该能上传个图片啥的,默认情况下,FreeTextBox是没有这个按钮的,需要我们稍微的配置一下,就是在你刚刚引用FreeTextBox的地方,也就是
<form runat="server">
<FTB:FreeTextBox id="FreeTextBox1"
ToolbarLayout="........"
runat="Server" />
</form>
看到了没,是不是多了个ToolbarLayout,你可以在这里填写:
ParagraphMenu, FontFacesMenu, FontSizesMenu, FontForeColorsMenu,
FontForeColorPicker, FontBackColorsMenu, FontBackColorPicker, Bold, Italic, Underline,
Strikethrough, Superscript, Subscript, InsertImageFromGallery, CreateLink, Unlink,
RemoveFormat, JustifyLeft, JustifyRight, JustifyCenter, JustifyFull, BulletedList,
NumberedList, Indent, Outdent, Cut, Copy, Paste, Delete, Undo, Redo, Print, Save,
ieSpellCheck, StyleMenu, SymbolsMenu, InsertHtmlMenu, InsertRule, InsertDate,
InsertTime, WordClean, InsertImage, InsertTable, EditTable, InsertTableRowBefore,
InsertTableRowAfter, DeleteTableRow, InsertTableColumnBefore, InsertTableColumnAfter,
DeleteTableColumn, InsertForm, InsertForm, InsertTextBox, InsertTextArea,
InsertRadioButton, InsertCheckBox, InsertDropDownList, InsertButton, InsertDiv,
InsertImageFromGallery, Preview, SelectAll, EditStyle
这么多种按钮,中间用可以用","(逗号)";"(分号)"|"(管道符)隔开