I have an ASP.NET WebSite and a custom control (let's call it myControl). I need to call a method on this control using AJAX. I am sending an ajax call from JavaScript (jQuery) in C # WebMethod. This works fine, but I cannot get to myControl in static WebMethod. Any ideas how to solve this problem?
Short version: AJAX call from JS to C # WebMethod works → * here (in this method) I need to call a method on my custom control that is not available due to the static type of the method *
[WebMethod] public static List<CustomListControl.IListItem> GetListItems() {
Heko
source share