Trigger code behind from a jQuery dialog

Trigger code behind from a jQuery dialog

[using Visual Studio 2010]     

Hi Guys!

This functionality seems so childishly simple...but I have searched for days to find an answer.

Here is my jQuery Dialog:

 <script type="text/javascript"> $(document).ready(function () { $("#myDialog").dialog({ autoOpen: false, resizable: false, width: 400, height: 250, modal: false, buttons: { "Ok": function () { $(this).dialog("close"); //return true; }, Cancel: function () { $(this).dialog("close"); } } }); });

When the user clicks the "OK" button, I need a VB code behind set of code to be run. Sounds so straight forward, but given the client/server issues, I am not sure how to overcome the problem.

Hope someone can help!

many thanks

"Always make things as simple as possible, but no simpler" - Albert Einstein