AD

FreeTextBox use Xiangjie

1. Download FreeTextBox 3.1.1 (released 2005/11/08)

[Url] ****freetextbox**/downloads.aspx [/ url]

2. Installation

FreeTextBox 3.0 or later support the internal model, that is, images and javascript resources are integrated in the dll, this article deals only with internal models (Internal Resources).

1) the FTBv3-1-1 \ Framework-1.1 \ FreetextBox.dll copyed bin directory.

2) in the project to add the dll reference FreetextBox.dll

3) Web.config by adding the following code

<?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>
3. Using FreeTextBox
1) aspx page top
<% @ Register TagPrefix = "FTB" Namespace = "FreeTextBoxControls" Assembly = "FreeTextBox"%>

2) call
<FTB:FreeTextBox Runat="Server" />

3) Toolbar skin

ToolbarStyleConfiguration = Offoce2003/OfficeXP/Office2000/MAC

4) preserved editorial content

1 private void InitializeComponent ()
2 (
3 / / point to the same commission
4 this.FreeTextBox1.SaveClick + = new System.EventHandler this.FreeTextBox1_SaveClick);
5 this.Button1.Click + = new System.EventHandler (this.FreeTextBox1_SaveClick);
6)
7
8 private void FreeTextBox1_SaveClick (object sender, System.EventArgs e)
9 (
10 divshow.InnerHtml = FreeTextBox1.Text;
11)

5) The client detected a potentially dangerous Request.Form value
<% @ Page language = "c #" ValidateRequest = "false"%>

4 Photo Upload


1) Add ImageGallery button on the toolbar.

<FTB:FreeTextBox ..ToolbarLayout=" ..,InsertImageFromGallery,.. />

2) Copy "ftb.imagegallery.aspx" file into the same directory

[Url] **wiki.freetextbox**/default.aspx/FreeTextBoxWiki.ImageGallery [/ url]

3) FreeTextBox property

ImageGalleryPath = "~ / image / upload" Upload the default path
ImageGalleryUrl = "ftb.imagegallery.aspx? Rif = (0) & cif = (0)" ftb.imagegallery.aspx the catalog, only with relative directory, not use "~"

4) ImageGallery settings
ftb.imagegallery.aspx file

<FTB: ImageGallery
JavaScriptLocation = "InternalResource" UtilityImagesLocation = "InternalResource"
SupportFolder = "~ / aspnet_client / FreeTextBox /"
AllowImageDelete = true
AllowImageUpload = true
AllowDirectoryCreate = false
AllowDirectoryDelete = false
runat = "Server" />

AllowDirectoryCreate - the possibility of establishing a folder
AllowDirectoryDelete - can delete the folder
AllowImageUpload - can upload pictures
AllowImageDelete - can delete pictures
AcceptedFileTypes - can upload a file extension of the array (array)

Provides developers with the two properties

CurrentDirectories - a string [] array of directories to allow the user to navigate toward
CurrentImages - a FileInfo [] array of files the user should be able to insert.

Recommendation: delete the Page_Load event can significantly avoid uploading pictures can not be immediately displayed. Do not rewrite the Page_Load

That's all. Thanks
标签: code lt, quot, lt xml, utf 8, gt 2, innerhtml, bin directory, page language, lt system, system web, internal model, photo upload, image upload, javascript resources, editorial content, ftb, internal models, directory url, officexp, internal resources
分类: DotNet
时间: 2010-03-31

相关文章

  1. Session Xiangjie (change)

    Session Xiangjie (change) Abstract: Although the session mechanism in the web application has been adopted for ...
  2. OpenSessionInView Xiangjie

    OpenSessionInView Xiangjie http://www.javaeye.com/topic/32001
  3. hibernate configuration Xiangjie

    1, hibernate.cfg.xml configuration Xiangjie Hibernate can be a description of the file properties properties f ...
  4. JDK tool for java command Xiangjie

    JDK tool for java command Xiangjie SCJP compulsory content, very useful, even if you are using a IDE. 1, view ...
  5. JDK tools javac command Xiangjie

    JDK tools javac command Xiangjie SCJP tests of the content, understanding of this right to master IDE developm ...
  6. Java for the operation of Xiangjie Cookie

    Java for the operation of Xiangjie Cookie Original Long Dok 2009-08-06 This article give you details about the ...
  7. JAVA-IO Xiangjie

    JAVA-IO Xiangjie 1. Input and Output 1. Stream represents the ability to output data in any data source, or an ...
  8. struts2.0 of Action of the object life-cycle Xiangjie!!

    struts2.0 of Action of the object life-cycle Xiangjie! ! Many people have asked Struts2.0 objects are thread-s ...
  9. web.xml configuration file Xiangjie

    Deployment descriptor is actually an XML file that contains a lot of description of servlet / JSP applications ...
  10. log4j configuration file Xiangjie

    log4j configuration Xiangjie The first step: Add log4j-1.2.8.jar to the lib. Step Two: In the CLASSPATH establ ...
  11. Found Tibet look hibernate.cfg.xml Xiangjie

    hibernate.cfg.xml file Xiangjie "! - A standard XML file start line, version = '1 .0 'version of XML that ...
  12. The application of CSS completely Xiangjie FLEX3 Guide!

    FLEX3 Manual application of CSS completely Xiangjie ! Edited under the FLEX CSS Help, I basically have the gat ...
  13. The role of the DOCTYPE declaration and usage Xiangjie

    The role of the DOCTYPE declaration and usage Xiangjie 2008.08.26 jom ch Article Index The role of the DOCTYPE ...
  14. Hibernate.cfg.xml Xiangjie found about Tibet

    hibernate.cfg.xml file Xiangjie "! - A standard XML file start line, version = '1 .0 'version of XML that ...
  15. log4j configuration Xiangjie

    log4j configuration Xiangjie the first step: Add log4j-1.2.8.jar to the lib. Step Two: In the CLASSPATH establ ...
  16. String and StringBuffer Xiangjie

    String and StringBuffer Xiangjie (transferred) 2007-10-09 09:32 doubts about search-related information was th ...
  17. hibernate.cfg.xml file Xiangjie

    hibernate.cfg.xml file Xiangjie "! - A standard XML file start line, version = '1 .0 'version of XML that ...
  18. [] HTTP protocol Xiangjie

    Original Source: http://blog.csdn.net/gueter/archive/2007/03/08/1524447.aspx A very detailed description of th ...
  19. java mail api Xiangjie

    JavaMail API Xiangjie Study: Source: Release Date: April 7, 2007 Views: 26 Abstract: JavaMail API is to read, ...