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

ckfinder上传图片后,显示不出具体图片怎么办
我的ckfinder设置的储存位置为 /file,于是保存文本框时,地址自动保存为file/*


于是显示图片时,Img的src为localhost:8080/file/*,但是我的具体项目是放在localhost:8080/MyTest下,因此我希望他的src为localhost:8080/MyTest/file/*,请问这应该怎么办呢?

------解决方案--------------------
public string DynamicBaseUrl 
{             
    get
    { 
    object _baseUrl = HttpContext.Current.Session["CKFinder:DynamicBaseUrl"]; 
    if (_baseUrl == null 
------解决方案--------------------
 string.IsNullOrEmpty(_baseUrl.ToString()))  
    { 
        _baseUrl = "/ckfinder/userfiles/"; 
    } 
    this.BaseUrl = _baseUrl.ToString(); 
    return this.BaseUrl; 
    }