代码背后:
Public Shared Function GetSomeText() As String Dim result = "This is from code behind" Return result End Function
javascript中的调用者变量:
//This is not working like that,I think var t = GetSomeText();
那么,我怎样才能使变量“t”从代码隐藏中获取函数GetSomeText的“结果”?
谢谢.
var t = '<%= GetSomeText() %>';