May 16th, 2007, 12:07 PM
unable to use class from the server in the client
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
I have a function which I want to call from the client:
Public Function IsOKToDeleteCategory(ByVal rowIndex As Integer) As Boolean
In the client I have a java script funtion where I am trying to call to the function IsOKToDeleteCategory:
When I run the page I get an error saying that the the Cls class is undefined in the client side
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!