Having trouble calling a function through javascript and receiving an error message "CS0103: The name 'bidindex' does not exist in the current context". Can anyone provide assistance? Thank you!
JavaScript code snippet:
<script>
function senddata(whatdate, bidindex) {
var a = "<%=DatabidGridView1(bidindex,whatdate%>";
}
</script>
C# code snippet:
public string DatabidGridView1(string sindex, string sdate)
{
return "good";
}