javascript から .cs クラス ファイル (C#) 関数を呼び出すことに疑いがあります。私のコード: call_cs_function_from_js のようなクラス ファイル (.cs) があります。
------------------------------------------------------------------
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()
        {
        }
    }
}
これはJavaScriptコードファイルです:
<script type="text/javascript">
function call(){
  cal_lcs_function_from_js.getdata();  //This way is not working 
  alert('called');
}
</script>
ここで、call() から cal_lcs_function_from_js の getdata を呼び出したい (.js を意味する)。ボタンのクリック時に call() が呼び出されます。
他の方法を教えてください。