Is it possible to user script methods as an ajax url ?

Is it possible to user script methods as an ajax url ?

liranfliranf Posts: 9Questions: 6Answers: 0

Hi,
I want to use ajax to load data into my dataTable but I want to use it in the following way:

from javascript:

url: "CarService.aspx/GetAllCars",

from server (C#):

[WebMethod()]
[ScriptMethod()]
public static void Test()
{
}

This discussion has been closed.