accessing methods of page when accessing page with a page method
<p>I have a code behind file of an aspx file that looks like this:</p>

<pre><code>public partial class Pages_MyPage : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {
     .....
  }

  protected int MyMethod()
  {
     .....
  }

  [WebMethod]
  public static int MyPageMethod()
  {
    int x = MyMethod();
    return x;
  }

}
</code></pre>

<p>When I'm sending an ajax POST to MyPageMethod, I can't access MyMethod. What's the way around this issue.</p>

<p>Thanks for your suggestions.</p>
