I have the following code that I want to return to a variable "t" in javascript:
Code behind:
Public Shared Function GetSomeText() As String
Dim result = "This is from code behind"
Return result
End Function
Caller variable in javascript:
//This is not working like that, I think
var t = GetSomeText();
So, how can I make variable "t" get the "result" from Function GetSomeText from code-behind?
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…