title: jquery ajax post method giving internal server error
body: <pre><code> $("[id$=_btnPostReminder]").click(function(){
       var a = $find("&lt;%=Editor1.ClientID%&gt;");
       var remindertext = a.get_content();
       var re=$("#&lt;%=hiddReminderTicketId.ClientID%&gt;").text();
       var res= $("#&lt;%=txtReminderon.ClientID%&gt;").val();
       $.ajax({
          type: "POST",
          url: "AllTickets.aspx/btnPostReminder",
          data: '{TicketId: ' + re + ',remindertext: ' +  remindertext  + ',reminderon: ' +  res  + '}',
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success:
          function Ret(response) { 
          var Result=response.d
          alert(Result)
          $("#&lt;%=txtReminderon.ClientID%&gt;").val("")
          $('#&lt;%=hiddReminderTicketId.ClientID %&gt;').text("")
          $('#&lt;%=lblAlert.ClientID %&gt;').text("Set Successfully");
          return false;
          },
          error: function(data, status, jqXHR) {                        
          alert(jqXHR);
          }
      }); 
      return false;
  });
  </code></pre>
  
  <p>C# code behind :</p>
  
  <pre><code>[System.Web.Services.WebMethod()]
  public static string btnPostReminder(Int64 TicketId, string remindertext, string reminderon)
  {
      Common objCommon = new Common();
      DAL objDal = new DAL();
      SqlParameter[] para = new SqlParameter[4];
      para[0] = new SqlParameter("@ticketid", DbType.Int64);
      para[0].Value = TicketId;
      para[1] = new SqlParameter("@REMINDERTEXT", DbType.String);
      para[1].Value = remindertext;
      para[2] = new SqlParameter("@REMINDERON", DbType.DateTime);
      para[2].Value = objCommon.ReturnDate(reminderon);
      para[3] = new SqlParameter("@CREATEDBY", DbType.Int64);
      para[3].Value = Convert.ToInt64(1);
  
      objDal.ExecuteSP("CREATE_REMINDER", para);
  
      return   " successfully";
  }
  </code></pre>