Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用页脚模板和带有cleditor作为输入的textarea添加新行_C#_Asp.net_.net_Gridview - Fatal编程技术网

C# 使用页脚模板和带有cleditor作为输入的textarea添加新行

C# 使用页脚模板和带有cleditor作为输入的textarea添加新行,c#,asp.net,.net,gridview,C#,Asp.net,.net,Gridview,我正在使用footertemplate在gridview中添加新行。在footertemplate中,我使用cleditor绑定了html文本区域。在textarea中输入文本并输入add按钮后,输入的文本将被清除。您需要使用asp textbox而不是textarea 使用以下内容更改html文本区域 <asp:TextBox id="input" runat="server" TextMode="MultiLine" Text=""></asp:TextBox> $

我正在使用footertemplate在gridview中添加新行。在footertemplate中,我使用cleditor绑定了html文本区域。在textarea中输入文本并输入add按钮后,输入的文本将被清除。

您需要使用asp textbox而不是textarea

使用以下内容更改html文本区域

<asp:TextBox id="input" runat="server" TextMode="MultiLine" Text=""></asp:TextBox>
$(document).ready(function() {
    $('#<%= input.ClientId %>').cleditor({width:500, height:180, useCSS:true});
});

**别忘了TextMode=“多行”

你的cleditor声明应该是这样的

<asp:TextBox id="input" runat="server" TextMode="MultiLine" Text=""></asp:TextBox>
$(document).ready(function() {
    $('#<%= input.ClientId %>').cleditor({width:500, height:180, useCSS:true});
});
$(文档).ready(函数(){
$('#').cleditor({width:500,height:180,useCSS:true});
});