前台页面:
<asp:TextBox ID="TextBox1" runat="server" Height="177px" TextMode="MultiLine" Width="306px"></asp:TextBox>
<IFRAME id="eWebEditor1" frameBorder="0" width="594" scrolling="no" height="350" runat="server">
</IFRAME>
后台页面:
protected void Page_Load(object sender, EventArgs e)
{
this.TextBox1.Style.Add("display", "none");
this.eWebEditor1.Attributes.Add("src", "eWebEditor/ewebeditor.htm?id=TextBox1&style=coolblue");
}
本文介绍如何在ASP.NET应用中使用eWebEditor富文本编辑器替换默认的TextBox控件,通过隐藏TextBox并设置IFRAME的源来实现富文本编辑功能。
675

被折叠的 条评论
为什么被折叠?



