随笔 - 28  文章 - 0 评论 - 25 trackbacks - 0

最新版的cuteeditor可以从控件初始化时定义上传目录

protected void Page_Load(object sender, EventArgs e)

{

 if (!IsPostback)

{

  string LocalPath=Server.MapPath("../Uploads/"+ Session["userid"]); //判断文件夹是否存在的过程省略

  this.Editor1.SetSecurityFilesGallerPath(LocalPath);

  this.Editor1.SetSecurityFlashGallerPath(LocalPath);

  ......

}

 

}

posted on 2011-01-08 11:54 莱福 阅读(26) 评论(0) 编辑 收藏