Access variable from code behind via javascript

前端 未结 2 597
终归单人心
终归单人心 2020-12-16 23:04

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          


        
2条回答
  •  轮回少年
    2020-12-16 23:54

    You need to write the string to a Javascript variable in server-side code, like this: (In a

提交回复
热议问题