pagemethods - Can you use AJAX page methods to make non-static function calls? -
pagemethods - Can you use AJAX page methods to make non-static function calls? -
javascript:
pagemethods.drageventtoevent(event.text(), event.parent().parent().text(), cell.parent().text(), onsucceeded, onfailed);
c# function:
[webmethod] public static void drageventtoevent(string evt, string startcell, string endcell) { //blahblah }
this "works", it's static call. need non-static phone call here. can done page methods?
no cant utilize non-static function calls pagemethods.
use system.web.ui.icallbackeventhandler instead.
implementing client callbacks programmatically without postbacks in asp.net web pages
example 1:
asynchronous client script callbacks
example 2:
using icallbackeventhandler in asp.net
gl hf ;)
ajax pagemethods
Comments
Post a Comment