使用的方法:
  (1) 复制 bin 目录下的 FreeTextBox.dll 文件到你的 Web 应用程序目录中的 bin 目录或其上层的虚拟目录下的 bin 目录;
  (2) 复制 HelperScripts 目录下的三个文件到你的 Web 应用程序目录中或其子目录中,注意使用时要指定 HelperFilePath 属性;
  (3) 复制 images 目录下的 ftb 目录到你的 Web 站点根目录下的 images 目录中。安上面做了,可是却不能用呀,一开如说我输入的文字中有危险的Request.Form,后来就是说我,看下面信息没有可用的错误信息: DB_SEC_E_AUTH_FAILED(0x80040E4D)。 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.OleDb.OleDbException: 没有可用的错误信息: DB_SEC_E_AUTH_FAILED(0x80040E4D)。我都不知道了,其中这一步谁给我解释一下?
 (2) 复制 HelperScripts 目录下的三个文件到你的 Web 应用程序目录中或其子目录中,注意使用时要指定 HelperFilePath 属性;并不是很懂

解决方案 »

  1.   

    第一个错误信息如下从客户端(FBText="<P>dfgsadfasd</P> <...")中检测到有潜在危险的 Request.Form 值。 
    说明: 请求验证过程检测到有潜在危险的客户端输入值,对请求的处理已经中止。该值可能指示危及应用程序安全的尝试,如跨站点的脚本攻击。通过在 Page 指令或 配置节中设置 validateRequest=false 可以禁用请求验证。但是,在这种情况下,强烈建议应用程序显式检查所有输入。 异常详细信息: System.Web.HttpRequestValidationException: 从客户端(FBText="<P>dfgsadfasd</P> <...")中检测到有潜在危险的 Request.Form 值。
      

  2.   

    以上问题我自己解决了,现在问题转为
    1:怎么样实现换行?
    2:我的FreeTextBox,不知道是什么版本,没有上传功能,请大家说说上传功能怎么用
    谢了
      

  3.   

    上传很简单拉,以前写过一个类,实现上传的,不过大文件没试过
    public class CUploadFile
    {
    System.Web.UI.HtmlControls.HtmlInputFile _scrfile; string _savepath = "";
    string _newfilename = "";
    string _newextfile = "";
    int _maxsize = 0;
    string _extfile = "";
    public CUploadFile()
    { }
    public CUploadFile(System.Web.UI.HtmlControls.HtmlInputFile scrFile)
    {
    //_scrfile=scrFile;
    this.FileSource = scrFile;
    }
    public CUploadFile(System.Web.UI.HtmlControls.HtmlInputFile scrFile, string SavePath)
    {
    this.FileSource = scrFile;
    _savepath = SavePath;
    _newfilename = scrFile.PostedFile.FileName;
    }
    public CUploadFile(System.Web.UI.HtmlControls.HtmlInputFile scrFile, string SavePath,string NewFileName)
    {
    this.FileSource = scrFile;
    _savepath = SavePath;
    _newfilename = NewFileName;
    }
    public int Start()
    {
    if(_scrfile.PostedFile.ContentLength == 0)
    {
    return 504; //no source
    }
    else if((_scrfile.PostedFile.ContentLength >= _maxsize)&&(_maxsize != 0))
    {
    return 501; //out of the range
    }
    else if((_savepath == "")||(_newfilename == ""))
    {
    return 505; //no filename or path 
    } else if(!CheckExt())
    {
    return 502; //ext is not allow
    } try
    {
    _scrfile.PostedFile.SaveAs(_savepath + _newfilename + _newextfile);
    return 0;
    }
    catch
    {
    return 500; //unknow error
    }
    }
    private bool CheckExt()
    {
    if(_extfile == "") return true;
    string [] exts = null;
    exts = _extfile.Split(new char[]{';'});
    int i = 0;
    for(i=0;i<=exts.GetUpperBound(0);i++)
    {
    if(exts[i] == _newextfile) return true;
    }
    return false;
    }
    public virtual System.Web.UI.HtmlControls.HtmlInputFile FileSource
    {
    get
    {
    return _scrfile;
    }
    set
    {
    string s;
    _scrfile = value;
    s = _scrfile.PostedFile.FileName;
    s = s.Substring(s.LastIndexOf('.'));
    _newextfile = s;
    }
    }
    public string GetErr()
    {
    return "";
    }
    public virtual string SavePath
    {
    get
    {
    return _savepath; }
    set
    {
    _savepath = value;
    }
    }
    public virtual int MaxSize
    {
    get
    {
    return _maxsize;
    }
    set
    {
    _maxsize = value;
    }
    } public virtual string AllowExtFile
    {
    get
    {
    return _extfile;
    }
    set
    {
    _extfile = value;
    }
    }
    public virtual string NewFileName
    {
    get
    {
    return _newfilename;
    }
    set
    {
    _newfilename = value;
    }
    } }
      

  4.   

    我的意思是在freetextbox里怎么实现上传??