call .cs class file(c#) function from javascript
<p>I have doubt regarding call .cs class file(C#) function from javascript
    My Code:
    I have class file(.cs) like call_cs_function_from_js</p>

<pre><code>------------------------------------------------------------------


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace call_cs_function_from_js
{
    public class cal_lcs_function_from_js
    {
        public void getdata()
        {

        }
    }
}
</code></pre>

<h2>This is javascript code File:</h2>

<pre><code>&lt;script type="text/javascript"&gt;
function call(){
  cal_lcs_function_from_js.getdata();  //This way is not working 
  alert('called');
}
&lt;/script&gt;
</code></pre>

<p>Here I want call getdata of cal_lcs_function_from_js from call()(means .js). call() invoked when button click.</p>

<p>Please Show me what are the other ways.</p>
