Please take a look at the question I asked not so long ago: jQuery-UI Dialog
Please look at the question I marked as the correct one.
The problem I have now is that I don’t know exactly in the aspx page how to access the data from the ajax call.
Can I call the Save method on my page(c#) directly?
How do I send the parameters to be saved?
My ajax call looks like this now:
function AjaxSavePayment()
{
$.ajax({
type: "POST",
url: "Payments.aspx",
data: "doFunction=True",
success: function () {alert("C# Function was executed!");}
});
}
Thanks.
I used PageMethods instead.