Is it possible to call ASP.NET codebehind function from JavaScript.
No, it is not possible to call ASP.NET code behind function from Javascript directly. ASP.NET code behind executes on the server in the context of the ASP.NET worker process. Javascript is executed on the client in the context of the client's browser.
The only way Javascript could trigger execution of ASP.NET code behind is through making an AJAX call from the Javascript to the server.