title: Calling a page's webmethod from javascript on a different page
body: <p>Is it possible to call a method attributed with [WebMethod] from javascript on a different page? I.e. using the following jquery ajax call from script on a page called PageTwo.aspx:</p>
  
  <pre><code>    $.ajax(
          {
              type: "POST",
              url: "pageone.aspx/PageOneMethodOne",
              data: "{}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function(msg)
                       {
                          //something
                       }
          }
      );
  </code></pre>
  
  <p>PageOne.aspx.cs containing</p>
  
  <pre><code>    [WebMethod]
      public string PageOneMethodOne()
      {
          return "hello world";
      }
  </code></pre>