title: How to call a Server Side Function in a javascript Function
body: <p>I have a button which will execute this when clicked:</p>
  
  <pre><code>protected void Button6_Click(object sender, EventArgs e)
  {
      Page.ClientScript.RegisterStartupScript(this.GetType(), 
                      "myScript", "AnotherFunction();", true);
  }
  </code></pre>
  
  <p>I also have another server side function which is this:</p>
  
  <pre><code>public void Delete()
  {
    //Delete Code
  }
  </code></pre>
  
  <p>After clicking the button, it will now go to this <code>javascript</code> function:</p>
  
  <p>Now what i want to do is, call the <code>Delete()</code> function on the SERVER side .Here is my javascript function what i have tried so far</p>
  
  <pre><code>function (isConfirm) 
  {
     if (isConfirm)
     {
         //CALL DELETE FUNCTION HERE Delete();
         swal("Deleted!", "Your imaginary file has been deleted.", "success");
     }
     else
     {
         swal("Cancelled", "Your imaginary file is safe :)", "error");
     }
   });
  </code></pre>
  
  <p>How can i call that server side function? Any idea?</p>