FCK使用的记录

    好长时间没写blog了,从今天开始把每天学的都记录在上边了。今天需要把FCK和Asp.net结合起来,中间遇见很多问题,不过都算解决了,以此http://blog.licns.com/blog/article.asp?id=173为基础配置过程中主要有三个问题,第一是代码里边一个用户验证方面的,需要把在filemanager/connector/里边的connector.aspx和upload.aspx里边的them加上,因为我用的是vs2008。。嘿嘿

      第二是:在webcomfig里边配置一下<appSettings>
 <add key="ServiceYdj.Service1" value="http://localhost:11504/Service1.asmx"/>
    <add key="DictionaryFolder" value="bin" />
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="~/userfiles/" />
    </appSettings>

  和在 public override void SetConfig()
 {
  // SECURITY: You must explicitly enable this "connector". (Set it to "true").
  Enabled = CheckAuthentication();

  // URL path to user files.
        UserFilesPath = "~/userfiles/";

    ............

}

配置一下,然后在根目录下建立userfiles文件夹,再在它里边建立image文件夹.

  第三,将  private bool CheckAuthentication()
 {
  // WARNING : DO NOT simply return "true". By doing so, you are allowing
  // "anyone" to upload and list the files in your server. You must implement
  // some kind of session validation here. Even something very simple as...
  //
  //  return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
  //
  // ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
  // user logs in your system.

  return true;
 }

 

  return里的false改为true就可以了。。。

 

  此文属于个人记录,不详细,请参考以下几篇配置就行了。。。本人比较懒 ,不再多说拉。。。嘿嘿

http://www.cnblogs.com/alby/archive/2006/09/26/515240.html

http://blog.licns.com/blog/article.asp?id=173

http://blog.youkuaiyun.com/21aspnet/archive/2007/04/11/1559848.aspx

http://www.cnblogs.com/mossan/archive/2008/04/11/899542.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值