好长时间没写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
670

被折叠的 条评论
为什么被折叠?



