Calling server side method from client side javascript

2 posts, 0 answers
  1. Srinivas
    Srinivas avatar
    32 posts
    Member since:
    Aug 2010

    Posted 11 Jan 2011 Link to this post

    Hello Telerik,

    Is there a mechanism for calling the serverside method from client side java script function written at the aspx page with asp.net ajax controls ?
    I know a mechanism like 'page methods' ,but in this the method we can should be 'Static' and also a 'Webemethod' . which is not useful for me.

    I mean something like,
    In my aspx page the clientside event calls a javascript function which should call the serverside event handler of that control .
    Ex: radlist box's onclientselectionchanged =" call server"  in which i want to call the ' radlistbox1_selectionchanged ' event.

    Thanks in advance,
    Srinivas
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Jan 2011 Link to this post

    Hello Srinivas,

    You can achieve the desired functionality by invoking an ajaxRequest() from client side. And from the AjaxRequest event handler (serverside) you can call the desired function.

    Shinu.
Back to Top