Access varialbe from code behind via jQery
- by Morron
Hi,
I have the following code that I want to return to a variable "t" in jQery:
Code behind:
Public Shared Function GetSomeText() As String
Dim result = "This is from code behind"
Return result
End Function
Caller variable in jQuery:
//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.