I've got this in the html head of my page, Ajax.aspx:

<script language="javascript">
        window.onload = function () {

var response = Ajax.Add(6, 9);
alert(response.value);
}

For the code behind I've got:
 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
         AjaxPro.Utility.RegisterTypeForAjax(GetType(Ajax))
End Sub

<AjaxPro.AjaxMethod()> _
Public Function Add(ByVal firstNumber As Integer, ByVal secondNumber As
Integer) As Integer
        Return firstNumber + secondNumber
End Function

I'm getting "Object does not support this property or method" for the
line:
var response = Ajax.Add(6, 9);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to