[The simplest online ASP. NET Editor-freetextbox configuration method]

Source: Internet
Author: User
Use of freetextbox

Freetextbox is used with ASP. net html online editor, the official site is: http://www.freetextbox.com

The usage is very simple. Here is a detailed introduction!

  1. Download the latest http://www.freetextbox.com/download/ on the official website
  2. Decompress the package and introduce the DLL files under the corresponding framework to the project.

    Here I will select the DLL of framework-4.0.

    In the project, click reference> add reference to find the DLL.

  3. Next, let freetextbox appear in the toolbox,
    Right-click the toolbox, select items, and select

    After selecting this DLL file, you will see the freetextbox control in the toolbox. Then you can replace the Textbox Control on the foreground page with freetextbox.
  4. Set freetextbox attributes

<Ftb: freetextbox id = "ftbcontent" runat = "server" width = "480" Height = "200"

Toolbarstyleconfiguration = "Office2000" Language = "ZH-CN">

</Ftb: freetextbox>

Pay special attention to the yellow highlighted attribute. These two are very important. The former is used to set the skin of the editor, and the latter is used to set the language of the editor.

5. Don't be too happy now, because there is another important thing you haven't done.
Configure. Net to verify HTML code to prevent cross-site scripting (xxs) attacks. The specific practices are as follows:
1) Add the validaterequest = "false" attribute to the code snippet on the top page of this page.
2) If it is. NET Framework 4.0, You need to configure the Web. config file.
Add the following content to the <system. Web> label:

<Httpruntime requestvalidationmode = "2.0" type = "codeph" text = "/codeph"/>

6. So far, our freetextbox online editor has been configured.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.