-
unable to register ajax server class
I am trying to register server class so that I will be able to call a function in the server from the client using ajax.
In the page load function in the server I wrote:
Public class Cls
Protected Sub Page_Load1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Ajax.Utility.RegisterTypeForAjax(GetType(cls))
End sub
End class
I have a function which I want to call from the client:
<Ajax.AjaxMethod(HttpSessionStateRequirement.ReadWrite)> _
Public Function IsOKToDeleteCategory(ByVal rowIndex As Integer) As Boolean
End function
In the client I have a java script funtion where I am trying to call to the function IsOKToDeleteCategory:
function canDeleteCategory()
{
Cls. IsOKToDeleteCategory(3);
}
When I run the page I get an error saying that the the Cls class is undefined in the client side
Similar Threads
-
By JavaFaces in forum Java
Replies: 1
Last Post: 02-14-2006, 08:04 AM
-
By JavaFaces in forum Java
Replies: 0
Last Post: 02-12-2006, 07:27 PM
-
Replies: 5
Last Post: 10-17-2002, 01:58 PM
-
By Niclas in forum Enterprise
Replies: 1
Last Post: 11-02-2001, 07:19 AM
-
Replies: 1
Last Post: 08-20-2001, 07:17 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|