【发布时间】:2012-09-25 17:37:31
【问题描述】:
我正在使用页脚模板在 gridview 中添加新行。在页脚模板中,我有 html textarea 与 cleditor 绑定。一旦我在 textarea 中输入文本并输入添加按钮,那么输入的文本就会被清除。
【问题讨论】:
我正在使用页脚模板在 gridview 中添加新行。在页脚模板中,我有 html textarea 与 cleditor 绑定。一旦我在 textarea 中输入文本并输入添加按钮,那么输入的文本就会被清除。
【问题讨论】:
你需要使用 asp 文本框而不是 textarea
用类似这样的东西改变你的 html 文本区域
<asp:TextBox id="input" runat="server" TextMode="MultiLine" Text=""></asp:TextBox>
**别忘了 TextMode="MultiLine"
你的 cleditor 声明应该是这样的
$(document).ready(function() {
$('#<%= input.ClientId %>').cleditor({width:500, height:180, useCSS:true});
});
【讨论】: