I want to call function through javascript, but I get an error message "CS0103: The name 'bidindex' does not exist in the current context" Can you help me? Thanks
JS code
<script>
function senddata(whatdate, bidindex) {
var a = "<%=DatabidGridView1(bidindex,whatdate%>";
}
</script>
.cs code
public string DatabidGridView1(string sindex, string sdate)
{
return "good";
}