直接使用没有问题,但是在用户控件中使用就不行了,具体表现是处于不可用状态,手动点击编辑按钮后输入内容,提交后内容是空。求解!!
部分代码
ascx:
<asp:TextBox id="txtcontent" runat="server" TextMode="MultiLine"></asp:TextBox>
<iframe ID="eWebEditor1" frameborder="0" scrolling="no" width="750" HEIGHT="550" runat="server"></iframe>
ascx.cs
protected System.Web.UI.WebControls.TextBox txtcontent;
protected System.Web.UI.HtmlControls.HtmlGenericControl eWebEditor1;if (!(Page.IsPostBack))
{
this.txtcontent.Style.Add("display","none");
this.eWebEditor1.Attributes.Add("src","ewebeditor/ewebeditor.asp?id=txtcontent&style=s_coolblue");mypara = mycmd.Parameters.Add("@content",SqlDbType.Text);     
mypara.Direction=ParameterDirection.Input;
mypara.Value = Convert.ToString(this.txtcontent.Text);