title: asp.net post javascript ajax to usercontrol
body: <p><strong>Javascript:</strong></p>
  
  <pre><code>function Proposal(GetProposal, ProductName, ProductID) {
  
        $.ajax({
        type: "POST",
        url: "Page.ascx/Proposal",
        data: JSON.stringify({ GetProposal: GetProposal, ProductName: ProductName, ProductID: ProductID }),
        contentType: "application/json; charset=utf-8",
        dataType: "json",
  
        failure: function (response) {
            alert(response.d);
                                     }
       });
  
       }
  </code></pre>
  
  <p><strong>Page.ascx:</strong></p>
  
  <pre><code>[WebMethod]
  public static void Proposal(string GetProposal, string ProductName, string ProductID)
  {
  
  HttpContext.Current.Response.Redirect("MyPage");
  
  }
  </code></pre>
  
  <p>When i try to post ajax to Proposal method i get below error :</p>
  
  <pre><code>POST http://localhost:63290/Page.ascx/Proposal 403 (Forbidden)
  </code></pre>
  
  <p>Where i miss what to change in my code ?</p>