Access varialbe from code behind via jQery

Posted by Morron on Stack Overflow See other posts from Stack Overflow or by Morron
Published on 2010-04-26T15:10:39Z Indexed on 2010/04/26 15:13 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery