日期:2014-05-17 浏览次数:20455 次
Session["FCKeditor:UserFilesPath"] = "~/cn/UploadFile/";
public class FckUploadConfig : IHttpModule { private void Application_AcquireRequestState(object sender, EventArgs e) { HttpApplication application = (HttpApplication)sender; HttpContext context = application.Context; HttpRequest request = application.Request; HttpResponse response = application.Response; context.Session["FCKeditor:UserFilesPath"] = null; if (request.Path.ToLower().IndexOf("cn/admin") > 0) { context.Session["FCKeditor:UserFilesPath"] = "~/cn/UploadFile/"; } } public void Dispose() { } public void Init(HttpApplication application) { application.AcquireRequestState +=new EventHandler(Application_AcquireRequestState); } }