title: How to call function in my dll from jquery
body: <p>My question is simple, I want to call a function in my <strong>dll</strong> via jquery.</p>
  
  <p>I'm trying the following </p>
  
  <blockquote>
    <p>$(window).load(function () {</p>
  
  <pre><code>   $.ajax({
         type: "POST",
         url: "RemotePaymentdll/Class1/CheckPending",
         data: '{}',
         contentType: "application/json; charset=utf-8",
         dataType: "json",
         success: alert("Success"),
         error: alert("Error")
     })
  </code></pre>
    
    <p>});</p>
  </blockquote>
  
  <p>the function in my dll is the following</p>
  
  <blockquote>
  <pre><code>Public Shared Sub CheckPending()
      Dim aaa = ""
  
  End Sub
  </code></pre>
  </blockquote>
  
  <p>I just want to be able to access <code>CheckPending()</code> in my <code>dll</code> from jquery. How can i do it?</p>