Please, how can I call to a JavaScript function that is in .js file from .vb file?

G

Guest

Please, how can I call to a JavaScript function that is in .js file from .vb file

thanks
Javi
 
C

Cor

Hi Javi,
Please, how can I call to a JavaScript function that is in .js file from
..vb file?

As I understand you well, than this can be the answer?

Cor

\\\
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim str As String = "<script language " & _
"=javascript>alert('I hope this helps a little bit?');</script>"
Page.RegisterStartupScript("Startup", str)
End Sub
///



Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top