0
我使用footertemplate在gridview中添加新行。在footertemplate中,我將html textarea與cleditor綁定在一起。一旦我在textarea中輸入文本並輸入添加按鈕,那麼輸入的文本就被清除了。你能幫助我嗎?緊急。提前致謝。添加新行使用頁腳模板和textarea與cleditor作爲輸入
我使用footertemplate在gridview中添加新行。在footertemplate中,我將html textarea與cleditor綁定在一起。一旦我在textarea中輸入文本並輸入添加按鈕,那麼輸入的文本就被清除了。你能幫助我嗎?緊急。提前致謝。添加新行使用頁腳模板和textarea與cleditor作爲輸入
你需要使用ASP文本框代替textarea的
改變你的HTML textarea的像這樣的東西
<asp:TextBox id="input" runat="server" TextMode="MultiLine" Text=""></asp:TextBox>
**不要忘記的TextMode = 「多行」
和你cleditor聲明應該是這樣的
$(document).ready(function() {
$('#<%= input.ClientId %>').cleditor({width:500, height:180, useCSS:true});
});