title: Cannot get response in ajax success
body: <p>My AJAX code is below. In this i cannot get the response from server side C# code. But there is no issues with my server side code ( I have checked it by debugging ).  From server side i am returning string to this ajax.</p>
  
  <pre><code>        $.ajax({
          type: "POST",
          url: '@System.Web.Configuration.WebConfigurationManager.AppSettings["BaseURL"]' +"provider/GetState",
          contentType: 'application/json',
          data: {CountryId: Country_Id },
          success: function (data) {
  
          alert(data);
  
          }
      });      
  </code></pre>
  
  <p>Server side code is below</p>
  
  <pre><code>          public string GetState(string CountryId)
      {
         int i= Convert.ToInt32(CountryId);
         var Details = objUserAccount.SP_Getstate(i).ToList();
         if(Details.Count&gt;0)
         {
           return "Success";
         }
         else
         {
           return "False";
         }
  
      }
  </code></pre>