在asp.net中怎么调用ewebeditor和获取ewebeditor的值呢?

解决方案 »

  1.   

    <INPUT type="hidden" name="content1">
    <IFRAME ID="eWebEditor1" src="../eWebEditor/ewebeditor.asp?id=content1&amp;style=s_coolblue" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>这样就可以引用了由于eWebEditor内有一个js控制了form,所以你需要手工定义提交后的页面:
    <form id="Form1" method="post" action="ArticleRules.aspx">在ArticleRules.aspx.cs页面可以读取content1的值,如下:
    StringBuilder msg = new StringBuilder();
    string[] webcontent = Request.Form["content1"].Split(',');
    foreach(string str in webcontent)
    {
    msg.Append(str);
    }msg就是编辑器的值!
      

  2.   

    和一般的TextBox获值的方法一样
    我用FreeTextBox 就这样的