Does JQuery authentication / authorization allow the page method to be called?
I have the following JQuery code that works fine in C # / Asp.net 2.0 to call a page method on the default.aspx page. Now I am trying to call a shared page method in VB.Net and the page method is not firing, I believe it is because of security, or it doesn't find it.
The page that this generic vb method resides in doesn't allow anonymous access, so I thought it was a problem, or it was a method lookup path problem. I'm just guessing here. In my test C # application, the static web method was in the default.aspx page with no security. Thanks for any advice or help!
$.ajax({
type: "POST",
url: "Orders.aspx/GetMailPieceGroupsByAdFundTypeId",
data: myDataToSend,
contentType: "application/json; charset=utf-8",
dataType: "json",
//error: function(XMLHttpRequest, textStatus, errorThrown) {alert(errorThrown); this;},
success: function(data, textStatus){alert(success);mailPieceGroups = eval('(' + data + ')'); startSlideShow(mailPieceGroups); }
});
0
source to share