留言本项目,【回复留言】的相关代码,要求用jquery实现回复留言后无刷新更新留言列表,并且要使用FCKeditor编辑器接收管理员回复的内容。我自己写的如下代码,无法引用FCKeditor1的id和value属性。  [WebMethod]
    public String Reply(int id,string FCKeditor1.Value)
    {
        System.Data.SqlClient.SqlConnection sqlCon = new SqlConnection();
        sqlCon.ConnectionString = "server=.;uid=sa;pwd=sa;database=guestbook";
        //定义SQL语句
        string SqlStr = "update gbook set repcontent=" + FCKeditor1.Value + "where id=" + id;
        //实例化SqlDataAdapter对象
        sqlCon.Open();
        SqlCommand cmd = new SqlCommand(SqlStr, sqlCon);
        int ret = cmd.ExecuteNonQuery();
        sqlCon.Close();
        if (ret > 0) return "回复成功";
        return "回复失败";
    }<div style="height: 205px">
       <FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" DefaultLanguage="zh-cn" Visible="False" />
       </div> 
 
         function replyData(id,FCKeditor1.Value) {
             $.ajax({
                 type: "POST",
                 cache: false,
                 url: "WebService.asmx/Reply", /* 注意后面的名字对应CS的方法名称 */
                 data: { "id": id }, /* 注意参数的格式和名称 */
                 contentType: "application/x-www-form-urlencoded",
                 dataType: "xml",
                 success: function (ret) {                     //判断 ret 删除成功再决定是否刷新getData();
                     getData();
                 }             });
         }