我做了一个在线聊天,代码如下:
<table id="TABLE1">
  <tr>
   <td colspan="3" rowspan="3">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">
     <ContentTemplate>
      <asp:DataList ID="DataList1" runat="server" Width="544px">
        <ItemTemplate>
         <table style="width: 400px; border: 1px;">
          <tr>
            <td style="width: 105px;" align="left">
             <asp:Label ID="lbl_name" ForeColor="blue" runat="server" Text='<%# SelectUserId(Eval("Fromuser_id")).User_name %>'></td>
            <td>
            </td>
            <td style="width: 129px;">
             <asp:Label ID="lbl_time" runat="server" Text='<%# Eval("Time") %>' Font-Size="10pt"></asp:Label></td>
          </tr>
          <tr>
            <td colspan="3" rowspan="2" style="text-align: left;">
             <asp:Label ID="lbl_content" runat="server" Text='<%# Eval("Content") %>'></asp:Label>
            </td>
          </tr>
       </table>
      </ItemTemplate>
     </asp:DataList>
    </ContentTemplate>
       <Triggers>
        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
       </Triggers>
     </asp:UpdatePanel>
        <br />
       <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/fckeditor/" Width="550px"
         ToolbarSet="Default" Height="120px">
       </FCKeditorV2:FCKeditor>
       </td>
    </tr>
    <tr>
     <td style="height: 25px">
       <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
          <ContentTemplate>
            <asp:LinkButton ID="lnkbtn_send" runat="server" OnClick="lnkbtn_send_Click">发送</asp:LinkButton>
          </ContentTemplate>
       </asp:UpdatePanel>
     </td>
    </tr>
</table>
当点击发送后,我想把FCKeditor1的值清空,我在后台写的this.FCKeditor1.Value = "";这个不管用,我试过如果把UpdatePanel2去掉的话就可以实现清空,但是去掉的话页面就刷新的太厉害了,我想问一下在不去掉UpdatePanel2的情况下怎么能把FCKeditor1的值清空,或者说不让整个页面刷新的同时把FCKeditor1的值清空?