zoukankan      html  css  js  c++  java
  • FCKeditor控件的使用方法

    方法/步骤

     
    1. 1、在项目的根目录下添加解压出来的文件夹fckeditor和空文件夹Uploads;

       

    2. 2、把FredCK.FCKeditorV2.dll添加到bin目录下。新建一个用户自定义控件(*.ascx),添加控件FCKeditor及其他需要的控件(如:button);

    3. 3、在文件*.ascx的源中添加这句话:<%@  Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2"  TagPrefix="FCKeditorV2" %><fckeditorv2:fckeditor id="FCKeditor1"  runat="server"  Width="760px"></fckeditorv2:fckeditor>

    4. 4

      4、在配置文件<appSettings>节点中添加<add  key="FCKeditor:BasePath" value="~/fckeditor/"/>    <add  key="FCKeditor:UserFilesPath" value="~/Uploads/"  />

    5. 5

      5、把自定义控件拖到其所需页面中。添加一个参数 validateRequest=false,否则提交带html代码的内容会报错。

      END

    注意事项

     
    • 添加一个参数 validateRequest=false,否则提交带html代码的内容会报错。

     经常有朋友问FCKeditor这个控件在ASP.NET中怎么使用,每次都是把自己总结好的qq给朋友,虽然不麻烦,但是好多网上的新手朋友们还是不知道该怎么用,所以本人把总结的具体步骤贴出来供大家参考。下面步骤没有什么先后顺序的,其中,第(5)步可以省略的,(*^__^*) 嘻嘻……

    方法/步骤

     
    1. 1、在项目的根目录下添加解压出来的文件夹fckeditor和空文件夹Uploads;

       

    2. 2、把FredCK.FCKeditorV2.dll添加到bin目录下。新建一个用户自定义控件(*.ascx),添加控件FCKeditor及其他需要的控件(如:button);

    3. 3、在文件*.ascx的源中添加这句话:<%@  Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2"  TagPrefix="FCKeditorV2" %><fckeditorv2:fckeditor id="FCKeditor1"  runat="server"  Width="760px"></fckeditorv2:fckeditor>

    4. 4

      4、在配置文件<appSettings>节点中添加<add  key="FCKeditor:BasePath" value="~/fckeditor/"/>    <add  key="FCKeditor:UserFilesPath" value="~/Uploads/"  />

    5. 5

      5、把自定义控件拖到其所需页面中。添加一个参数 validateRequest=false,否则提交带html代码的内容会报错。

      END

    注意事项

     
    • 添加一个参数 validateRequest=false,否则提交带html代码的内容会报错。
  • 相关阅读:
    boot空间不足
    catkin init/build 遇到catkin:command not found 的解决办法。
    ros自定义消息的时候报错ImportError: No module named em
    Opencv——相机标定
    Spring Boot 怎么打一个可执行 Jar 包?
    代码写成这样,老夫无可奈何!
    在外包干了三年,我废了……不吹不黑!
    国庆加了三天班,公司不给钱,咋办?
    面试官问线程安全的List,看完再也不怕了!
    年轻人的第一个自定义 Spring Boot Starter!
  • 原文地址:https://www.cnblogs.com/ljs-13/p/12844925.html
Copyright © 2011-2022 走看看