How to pass parameters in when call code-behind function in javascript?
- by KentZhou
Suppose I have a function in code behind like:
Public Function Calc(ByVal ID As Integer) As Boolean
'......
End Function
I can call this function in javascript like
var isSuccess ='<%=Calc()%>';
but how to pass the parameter in for this case? Following code not working:
var ID = 1;
var isSuccess ='<%=Calc(ID)%>';