I want to call function of .cs file from java script function. From javascript function I also want to pass one parameter to code behind function. Following is code of both the files. Thanks in advance.
In demo.aspx
<script>
function getValue(id)
{
"<%getData(id);%>"
}
</script>
In demo.aspx.cs
public void getData(string s)
{
//code to work on string.
}
I am getting error that is 'id' is not declare in demo.aspx file.