title: How do I call a server side VB.net function from jquery in an asp.net form?
body: <p>I am trying to call a method in my server-side vb code from jquery.</p>
  
  <pre><code>    import System.Web.Services
      ...
      'my VB.net Code
      &lt;WebMethod()&gt; _
      Public Shared Function SubmitReport_Click()
          'this is where my code will go
          Return Nothing
      End Function
  </code></pre>
  
  <p>In my javascript code the alert is being called but the SubmitReport_Click is not being called.</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"&gt;&lt;/asp:ScriptManager&gt;
  
  &lt;script type="text/javascript"&gt;
      $("#&lt;%= FileInput.ClientID%&gt;").on('filebatchselected', function (event) {
          alert("file input");
          pagemethods.SubmitReport_Click();
      })
  &lt;/script&gt;
  </code></pre>