C# 使用页脚模板和带有cleditor作为输入的textarea添加新行
我正在使用footertemplate在gridview中添加新行。在footertemplate中,我使用cleditor绑定了html文本区域。在textarea中输入文本并输入add按钮后,输入的文本将被清除。您需要使用asp textbox而不是textarea 使用以下内容更改html文本区域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> $
<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});
});