Calling Server Code by using javascript

Implementing Client Callbacks Programmatic Without Post-backs in ASP.NET Web Pages How can we call c# server side code by using java-script. Here i am given you an example in which i described that how to call it Use this code in aspx page

and use this code in aspx.cs page

This is the best way to use c# server side code by using java-script  instead of static function web method which calls from page method. For more reference: MSDN Link…