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?
Thanks
$("#editor-form").dialog({
autoOpen: false,
height: 400,
width: 650,
modal: true,
buttons: {
"Add Editor": function () {
//fire serverside event??
I tried adding this, but it doesn't work...no errors, just doesn't work.
$.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.
}