Tips and tricks for .NET using ASP and VB code.

Send JavaScript to Browser

Dim SendJavaScriptToBrowser As ClientScriptManager = Page.ClientScript
Dim JavaScriptText As String = "alert('Replace this alert with the JavaScript.\rThe script tags are automatically added for you.')"
SendJavaScriptToBrowser.RegisterClientScriptBlock(SendJavaScriptToBrowser.GetType, Now.ToBinary.ToString, JavaScriptText, True)

No comments:

Post a Comment

Search This Blog