我用的这个FreeTextBox没有本地上传图片功能,请问如何实现一个上传图片到服务器的目录中,然后也要显示在FreeTextBox中,谢谢!

解决方案 »

  1.   

    你网上下一个全点的freetexbox,有自带的上传图片的功能的!~没必要自己写
      

  2.   

    教程地址:
    http://www.cnblogs.com/cleo/archive/2007/01/16/freetextbox3_1_6.html
    按照以上网址说明,
    然后把ftb.imagegallery.aspx文件内容修改为:
    备注:亲爱的朋友们,如果你想使用"从图片库插入图片 "这个按钮?上面的代码需要去掉下面这个注释的代码: 
    <%--JavaScriptLocation="ExternalFile" 
    UtilityImagesLocation="ExternalFile" 
    SupportFolder="~/aspnet_client/FreeTextBox/"--%> 
    <FTB:ImageGallery id="ImageGallery1" 
    AllowImageDelete="true" AllowImageUpload="true" AllowDirectoryCreate="true" AllowDirectoryDelete="true" runat="Server" />就这样就可以哦!] 
    我也是这个开发环境:.net3.5+ie7.0,经过测试没有问题了,可以使用!
      

  3.   

    FreeTextBox没有本地上传图片功能
    不可能吧 
    给你个代码 加在 页面加载事件中
    //获取图片文件夹
                string ImagePath = System.Configuration.ConfigurationManager.AppSettings["ImagePath"].ToString();
                string imageSavePath = Server.MapPath("../uploadfile");
                this.FreeTextBox1.ImageGalleryPath = imageSavePath;
                this.FreeTextBox1.ImageGalleryUrl = ImagePath + "/uploadfile";
      

  4.   

    我这个FreeTextBox好像对不上你们那个版本啊,比较旧的