FreeTextBox3.1.6版本的使用方法!

從baidu或google上下載最新版本的FreeTextBox3.1.6

打開你的項目,添加引用Framework-2.0/FreeTextBox.dll
打開工具欄,反鍵,選擇項,再次添加,這樣你的工具欄就會多出FreeTextbox控件,還會有其他一些控件,不過我都沒動,也不知道具體怎麼用,畢竟我也是菜鳥!
然後將ftb.imagegallery.aspx拷貝到需要使用到的.aspx文件的同級目錄下,當然母板也可以用!
這樣就可以使用freetextbox了

有幾個地方需要注意
1.修改ImagaeGallerPath屬性爲你圖片放置的路徑
2.Language調整語言. 簡體中文是zh-cn
3.ToolbarLayout屬性,添加一個InsertImageFromGallery就可以從圖片庫中插入圖片了
其實這裏面還可以添加很多按鈕功能,至於分別有什麼用就不清楚,都粘出來給大家吧!
 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,InsertImageFromGallery"

4.打開新建目錄,上傳文件等功能
   修改ftb.imagegallery.ASPx頁面可以做到
   <FTB:ImageGallery id="ImageGallery1"
   SupportFolder="~/ASPnet_client/FreeTextBox/"
   AllowImageDelete="true" AllowImageUpload="true"
   AllowDirectoryCreate="true" AllowDirectoryDelete="true" runat="Server" />
   修改AllowImageDelete等屬性
...這個我沒用到!所以錯了也不要找我!呵呵!~

還有一點大家要注意,有些時候大家是要對用戶輸入做危險字符過濾

這對FreeTextBox沒必要,他會將用戶輸入的任何東西存儲起來,就算你輸入的是危險字符或標籤它也只當做是文本!


好了,這就是FreeTextBox控件使用...寫的很爛,大家不要罵我就ok了!
我會經常上傳一些我自己的開發經驗,希望大家能多多光顧我的blog!
thank you !
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章