You can do this with ajax call
this is a jquery example:
$.ajax({ type: "POST", url:"~/code_behind.aspx/Method", data: dataPost, contentType: "application/json; charset=utf-8", dataType: "json", .... });
here is api documentation and in code
[WebMethod] public static yourType Method (Params){}
or you can add a hidden button inside updatePanel and trigger the click event with js. ('#<%=ID.ClientID%>').click(); It will call OnClientClick, if it exists, then you use the codeBehind function.
source share