title: calling code behind c# method from jquery ajax
body: <p>i am trying to call code behind method from jquery ajax call but it doesnt hit break point on that methhod. what i am missing ?</p>
  
  <p>js</p>
  
  <pre><code>$('#btn_Submit').click(function () {
      $.ajax({
              url: 'ajaxExecute.aspx/CAO2',
              data: 'Guardian=' + $('#txtGuardianName').val() + '&amp;CIFID=' + $('#txtCIFID').val() + '&amp;EmploymentType=' + encodeURIComponent($('#cmbEmploymentType').val()) + '&amp;NatureIncome=' + encodeURIComponent($('#cmbIncomeNature').val()) + '&amp;Occupation=' + encodeURIComponent($('#cmbOccupation').val()),
              cache: false,
              context: document.body,
              type: 'POST',
              success: function (response) {
  
              }
          });
  }
  </code></pre>
  
  <p>ajaxExecute.aspx.cs</p>
  
  <pre><code>public partial class ajaxExecute : System.Web.UI.Page
  {
      [WebMethod]
      public static void CAO2(string Guardian, string CIFID, string EmploymentType, string NatureIncome, string Occupation)
      {
              //Some Code
          //No breakpoint hit here
      }
  
      protected void Page_Load(object sender, EventArgs e)
      {
              //Some Code
          // Got Breakpoint here
      }
  }
  </code></pre>