I have a button, that open a dilag Jquery and show some div. The dialog show 2 buttons ("ok "and "Cancel").
I would like to execute a code behind function (C#.net) when I click in the dialog "OK".
How can I do that?
$("#dialog").dialog({
autoOpen: false,
modal: true,
title: "Image Full Size",
draggable: true,
resizable: false,
show: 100,
width: 900,
height: 680,
buttons:
{
"Ok": function () {
$(this).dialog("close");
},
"Cancel": function () {
$(this).dialog("close");
}
}
});
For example:
To call next below function in C#.net
public void loadInfo()
{
// Do something
}
see below code