My page contains the following code in the function called when the button is clicked:
$.ajax({ type: "POST", url: "ProviderPortal.aspx/ppTransferToProvider", data: "{ICA_Key:'" + ICAKey + "', PROV_Key:'" + Provider + "'}", contentType: "application/json; charset=utf-8", async: true, cache: false, dataType: "json", success: function(msg) { alert(msg) } });
This code is modeled after the selected response to the Method Invocation on the ASP.NET server side via jQuery
However, I'm not sure if the signature of the ASP.NET function (VB, Net 2.0)
<WebMethod()> _ Public Shared Function ppTransferToProvider( _ ByVal ICA_Key As String, _ ByVal Prov_Key as String) As String
the page will receive data in the form of individual parameters or as a string that should be analyzed for these values. In addition, I cannot determine if the call is being executed correctly; it seems like the breakpoint in the function itself never hits, so I don't see it for myself.
a) Are the parameters passed only as a large string, or are they correctly passed to my function with two parameters? b) How can I track the execution of an ASP.NET function? Or can one be traced, given what he shares?
source share