FineUI 官方论坛
标题:
CKEditor控件在ExtAspNet中出现问题
[打印本页]
作者:
true||false
时间:
2012-6-8 03:10
标题:
CKEditor控件在ExtAspNet中出现问题
在一个ContentPanel中放了一个CKEditor控件,在点击获取值时弹出一个框,并在ContentPanel中多出一个textarea,这个怎么回事?前台代码如下:
<ext:PageManager ID="PageManager1" AjaxAspnetControls="CKEditorControl1" runat="server" />
<ext:ContentPanel ID="cpNews" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
ShowBorder="true" ShowHeader="true" Title="内容" Width="700">
<CKEditor:CKEditorControl ID="CKEditorControl1" runat="server"></CKEditor:CKEditorControl>
</ext:ContentPanel>
<ext:Panel ID="Panel1" runat="server" Layout="Column" ShowHeader="false" ShowBorder="false">
<Items>
<ext:Button ID="btnGet" Text="获取CKEditor的值" runat="server"
CssStyle="margin: 10px 10px 10px 0"></ext:Button>
<ext:Button ID="btnSet" Text="设置CKEditor的值" runat="server"
CssStyle="margin: 10px 10px 10px 0"></ext:Button>
</Items>
</ext:Panel>
后台代码:
protected void btnGet_Click(object sender, EventArgs e)
{
Alert.Show("CKEditor的值是:" + CKEditorControl1.Text);
}
点击'benGet'按钮时出现的界面:
[attach]623[/attach]
这到底是怎么回事呢,有知道的朋友请告诉我一下
欢迎光临 FineUI 官方论坛 (https://fineui.com/bbs/)
Powered by Discuz! X3.4