日期:2014-05-17  浏览次数:20393 次

问题,在MVC3.0中使用FCK
FCKEditor and ColdFusion Error: The server didn't reply with a proper XML data. Please check your configuration.上传图片的时候出现的,应该是路径没有设置

------解决方案--------------------
fck在同级目录下建个Upload的默认路径啊 我也用得mvc3
------解决方案--------------------
C# code

public static MvcHtmlString FckText(this System.Web.Mvc.HtmlHelper helper, string name, string width, string height)
        {
           if (string.IsNullOrEmpty(name))
            {
                return MvcHtmlString.Create("name属性为必须");
            }
            StringBuilder strBuilder = new StringBuilder();
            strBuilder.Append("<script tyle=\"text/javascript\">");
            strBuilder.Append(" var f = new FCKeditor(\""+name+"\","+width+","+height+");");
            strBuilder.Append("f.Create()");
            strBuilder.Append("</script>");
            return MvcHtmlString.Create(strBuilder.ToString());
        }

------解决方案--------------------
http://15815850410.blog.163.com/blog/static/11499607920116126936207/
------解决方案--------------------
http://15815850410.blog.163.com/blog/static/11499607920116126936207/
------解决方案--------------------
配置上传了么。

参考
看下面的蓝字部分
------解决方案--------------------
论坛应当开一个专门的MVC讨论区