How to pass parameters in when call code-behind function in javascript?
Posted
by KentZhou
on Stack Overflow
See other posts from Stack Overflow
or by KentZhou
Published on 2010-05-05T16:10:02Z
Indexed on
2010/05/05
16:18 UTC
Read the original article
Hit count: 204
JavaScript
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)%>';
© Stack Overflow or respective owner