如何从代码后台调用JavaScript函数

8 浏览
0 Comments

如何从代码后台调用JavaScript函数

我在一个asp.net页面中编写了一个javascript脚本。

在Asp.net页面中:

 
     
 
 

在Code-behind中:

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

Handles Me.Load

If Session("My")= "Hi" Then

我想调用"Myfunction" javascript函数

End If

End Sub

我该怎么做?

0