How to Call C# Function From Javascript?
If you're meaning to make a server call from the client, you should use Ajax - look at something like Jquery and use $. Ajax() or $. getJson() to call the server function, depending on what kind of return you're after or action you want to execute.