title: PageMethods.Method not being called from javascript
body: <p>I have a javascript function that builds a string then sends the string to the c# codebehind to work with.  Problem is, the PageMethods.Method is never being called.</p>
  
  <p>pertinent code:</p>
  
  <p>aspx page:</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" EnablePartialRendering="true"
      runat="server" /&gt;
  &lt;script type="text/javascript"&gt;
  function makeString() {
          debugger
          var a = document.getElementById("ddlRptYear").value + "_";
          var b = document.getElementById("ddlRptType").value + "_";
          var c = document.getElementById("ddlGeography").value + "_";
          var d = "";
          var e = "";
          var x = document.getElementById("ddlTouchPoint");
          var y = document.getElementById("ddlAOR");
  
          if (x.disabled == false) {
              d = x.value + "_";
          }
  
          if (y.disabled == false) {
              e = y.value;
          }
  
          var pptString = a + b + c + d + e + ".ppt";
          PageMethods.GetPPTString(pptString, onSuccess, onFail);
      }
  </code></pre>
  
  <p>codebehind:</p>
  
  <pre><code>[System.Web.Services.WebMethod]
      public static void GetPPTString(string pptString)
      {
          if ((pptString == "") || (pptString == null))
          {
              throw new Exception("Error: No String Sent.");
          }
          else
          {
              throw new Exception(pptString);
          }
      }
  </code></pre>