0

我正在使用页脚模板在 gridview 中添加新行。在页脚模板中,我有 html textarea 与 cleditor 绑定。一旦我在 textarea 中输入文本并输入添加按钮,那么输入的文本就会被清除。

4

1 回答 1

0

你需要使用 asp 文本框而不是 textarea

用这样的东西改变你的 html textarea

<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});
});
于 2012-10-01T10:53:29.563 回答