Thanks, I would highly appreciate if you have a VB project. I am
creatin a class as follows :
**********************
Namespace AjaxProV2.Examples
Public Class MyFirstAjaxPro
Public Sub New()
End Sub
<AjaxPro.AjaxMethod()> Public Function GetServerTime() As
DateTime
Return DateTime.Now
End Function
End Class
End Namespace
***************************************
Then in the webform1 load I have
"AjaxPro.Utility.RegisterTypeForAjax(GetType(Examples.MyFirstAjaxPro))"
whenever I run the following 2 javascript functions I get the following
error "AjaxProV2 object not defined"
**********The js functions**************************
function getServerTime()
{
AjaxProV2.Examples.MyFirstAjaxPro.GetServerTime(getServerTime_callback);
// asynchronous call
}
// This method will be called after the method has been executed
// and the result has been sent to the client.
function getServerTime_callback(res)
{
alert(res.value);
}
Joe wrote:
> The framework works with either C# or VB, most of the work is done with
> JavaScript on the browser.
>
> The only thing you have to worry about is the return type from you
> ASP.NET class, adding the <AjaxPro.AjaxMethod> attribute, and
> registering the class
> AjaxPro.Utility.RegisterTypeForAjax(typeof(namespace.class)) in the
> Page_Load
>
> Joseph Guadagno
> http://www.josephguadagno.net
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---