读者朋友你好!
首先说声报歉!我们不用VB.NET做网页,所用的语言都是C#!
don't use response.write, use Page.RegisterStartupScript, for example
Dim scriptString As String = "<script language=JavaScript> function window.onload() {"
scriptString += "alert('!!!!!!!!');}</"
scriptString += "script>"
If(Not Me.IsStartupScriptRegistered("Startup")) Then
Me.RegisterStartupScript("Startup", scriptString)
End If