Hi,
I have code that I tested in a C#/Asp.Net 2.0 web app to call a page method using JQuery and it worked perfectly, now I am trying to do the same in VB.Net/Asp.Net 2.0 and it won't fire the page method. I keep getting undefined javascript error which makes me think it can't find or access the Page method. If I were calling this with MS Ajax is there something else I need to mark the method with?<WebMethod()> _
Public Shared Function GetMailPieceGroupsByAdFundTypeId _
(ByVal adFundTypeId As Integer) As String
'More code in here
End Sub
$.ajax({
type: "POST",
url: "MyStaticPage.aspx/GetMailPieceGroupsByAdFundTypeId",
data: myDataToSend,
contentType: "application/json; charset=utf-8",
dataType ...
Go to the complete details ...