I have an ASP.net repeater that creates a table.
I want an onclick event for each row that triggers a javascript function "MarkComplete(TaskID)" that can pass a variable "Task ID" to a C# code behind function that will run the query to mark the task as complete.
eg:
<td colspan="3" onclick="MarkComplete(<%#DataBinder .... )%>)">
However, I can't figure out how you get javascript functions to trigger C# functions and pass variables to the code behind.
I want an onclick event for each row that triggers a javascript function "MarkComplete(TaskID)" that can pass a variable "Task ID" to a C# code behind function that will run the query to mark the task as complete.
eg:
<td colspan="3" onclick="MarkComplete(<%#DataBinder .... )%>)">
However, I can't figure out how you get javascript functions to trigger C# functions and pass variables to the code behind.