title: Calling a server side function with a JQuery UI button
body: <p>I have a JQuery UI button that I create below.  Is there a way to add some type of event director, so that when I click the button, one of my vb.net functions is called in my .aspx.vb file?</p>
  
  <p>Thanks      </p>
  
  <pre><code>$("#editor-form").dialog({
              autoOpen: false,
              height: 400,
              width: 650,
              modal: true,
              buttons: {
                  "Add Editor": function () {
                   //fire serverside event??
  </code></pre>
  
  <p>I tried adding this, but it doesn't work...no errors, just doesn't work.</p>
  
  <pre><code>                   $.ajax({
                          type: "POST",
                          url: "CreateTest.aspx/btnAddEditors_Click",
                          //data: "{subject:'" + subject + "',message:'" + message + ",messageId:'" + messageId + "',pupilId:'" + pupilId + "'}",
                          contentType: "application/json; charset=utf-8",
                          dataType: "json",
                          success: function (msg) {
                              // Do something interesting here.
                          }
  </code></pre>