title: How to call code behind method from a javascript function?
body: <p>I am having an javascript function for a HTML img click event in aspx page. And a server Method in its code behind page.Now I want to call the server method from the javascript function without any parameter only when the HTML img is clicked by the user.</p>
  
  <p>C# Code Behind Method:</p>
  
  <pre><code>[WebMethod]
  public void PopUpClick(object sender, EventArgs e)
  {
      //Something;
  }
  </code></pre>
  
  <p>JavaScriptMethod:</p>
  
  <pre><code> $(document).ready(function () {
  
      $('.clickme').click(function () {
          PageMethods.PopUpClick();
      });
  
  });
  </code></pre>
  
  <p>Also I added into the master page: <code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnablePageMethods="true" /&gt;</code> </p>
  
  <p>It is not working.When I debugging this Javascript function on the Chrome 
  I saw an error:Uncaught Reference Error:PageMethods is not defined.</p>