【问题标题】:Add new row using footer template and textarea with cleditor as input使用页脚模板和 textarea 以 cleditor 作为输入添加新行
【发布时间】:2012-09-25 17:37:31
【问题描述】:

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

【问题讨论】:

    标签: c# asp.net .net gridview


    【解决方案1】:

    你需要使用 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});
    });
    

    【讨论】:

      猜你喜欢
      • 2020-01-02
      • 1970-01-01
      • 2016-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-02
      相关资源
      最近更新 更多