i have one function, which is named as callData()
inside the c#. Now i want to call this function from JavaScript. I don't need any operations on JavaScript. Just i want to call that function. In this problem i don't need any other options.. Just i want to know how to call c# methods from JavaScript.
JavaScript
<script type="text/javascript">
function call()
{
//To call callData function
}
</script>
Html code
<html>
<div>
<asp:Button ID="hbtn" runat="server" OnClientClick="Javascript:call();"/>
</div>
</html>
C# code
public static void callData()
{
//some operations
}