小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

在.net中使用Fckeditor

 悟靜 2012-04-30

Web工程目錄demo,解壓FCKeditor_2.2.zip,保存在demo/FCKeditor下。用戶上傳文件目錄demo/UserFiles。
1,設(shè)置
        editor.LinkBrowserURL = Request.ApplicationPath + "/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx";
        editor.ImageBrowserURL = Request.ApplicationPath + "/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/aspx/connector.aspx";
2,解壓FCKeditor.Net_2.2.zip,修改其中的文件重新生成dll文件
    2.1修改FCKeditor.cs中的basepath屬性

        [ DefaultValue( "~/FCKeditor/" ) ]
        
public string BasePath
        
{
            
get 
            

                
object o = ViewState["BasePath"] ; 

                
if ( o == null )
                    o 
= System.Configuration.ConfigurationManager.AppSettings["FCKeditor:BasePath"] ;

                
return ( o == null ? "~/FCKeditor/" : (string)o ) ;
            }

            
set { ViewState["BasePath"= value ; }
        }

    2.2修改FileWorkerBase.cs增加成員變量private const string DEFAULT_USER_FILES_DIR = "/UserFiles/";
        增加屬性        

        protected string UserFilesDirectoryForUpload
        
{
            
get
            
{
                
return Server.MapPath(DEFAULT_USER_FILES_DIR);
            }


        }

        在UserFilesPath屬性中增加return Request.ApplicationPath + DEFAULT_USER_FILES_DIR;
    2.3修改Uploader.cs將string sFilePath = System.IO.Path.Combine(this.UserFilesDirectory, sFileName);改為string sFilePath = System.IO.Path.Combine(this.UserFilesDirectoryForUpload, sFileName);
3,解決FCKEditor上傳時(shí)中文文件名的方法
主要是修改文件frmUpload.html文件.修改方法是:先把frmUpload.html文件重新命名,然后添加一個(gè)aspx頁(yè)面文件,把上面的內(nèi)容復(fù)制到aspx頁(yè)面文件中,最后把新添加的aspx文件后綴改為html即可.修改后的文件內(nèi)容如下:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多