背景:
    在页面弹出一个Jquery 的dialog 模态对话框,在对话框中放了一个TextBox和一个FCKEditor在线编辑控件,然后再对话框中放了一imagebutton按钮
问题描述:
    在上述imagebutton的服务器端时间中获取不到FCKEditor.value的值,不管页面上FCKEditor中输入什么,服务器端FCKEditor.value都为空,但是textbox中页面输入的内容服务器端可以捕获到。请哪位高人指点一下 ?
 
代码:
Script:

 Code
Code
<script type="text/javascript">
$(function(){
   // Dialog            
        var dlg = $('#DialogEditContent').dialog({
            autoOpen: false,
            width: 680,
            position: 'top',
            modal: true,
            buttons: {
            }
        });    
 });
function SubmitAndCloseDialogEditContent()
{           
     $('#DialogEditContent').dialog('close');     
           $("#DialogEditContent").parent().appendTo($("form:first"));       
 }
function CloseDialogEditContent()
{
        
        $('#DialogEditContent').dialog('close');        
}
function OpenDialogEditContent(editoradd)
{
        $('#DialogEditContent').dialog('open');    
        return false;    
}    
</script>
 
Html:

 Code
Code
<table id="DialogEditContent" cellpadding="0" cellspacing="0" style="width:680px" title="主要内容" style="z-index:1000">
    <tr>
        <td>
        <table>
        <tr>
          <td><asp:Label ID="Label1" runat="server" Text="内容标题"></asp:Label></td>
          <td><asp:TextBox ID="txtContentTitle" runat="server"  Width="560px"></asp:TextBox></td>
        </tr>
        </table>                       
        </td>
    </tr>
    <tr>
        <td>
            <FCKeditorV2:FCKeditor ID="FckNewContent" runat="server" Height="160px" Width="640px"   ToolbarStartExpanded="true"  ToolbarSet="Basic"
                BasePath="~/fckeditor/"  >
            </FCKeditorV2:FCKeditor>
        </td>
    </tr>
    <tr>
    <td>
    <asp:ImageButton ID="ibtnAddContentSubmit" runat="server" 
            ImageUrl="~/Images/btnSubmit.gif" 
            onclick="ibtnAddContentSubmit_Click"    OnClientClick="SubmitAndCloseDialogEditContent()" />
        <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/btnCancel.gif" OnClientClick="CloseDialogEditContent()"  />
    </td>
    </tr>
</table>
 
cs:

 Code
Code
    protected void ibtnAddContentSubmit_Click(object sender, ImageClickEventArgs e)
    {
        rds_rdcontentLogic rdcHelper = new rds_rdcontentLogic();
        rds_rdcontent rdc = new rdcontent ();
        rdc.Content = this.FckNewContent.Value;  //一直为空
        rdc.Title = txtContentTitle.Text;  //可以去到输入的值
        rdc.RDID = this.RDID;
        //
 
   
    }