RegisterClientScriptBlock
例子:
If (Not IsClientScriptBlockRegistered("SendMailScript")) Then
strSendMailScript = "<script language='JavaScript' type='text/javascript'>function SendMail(){" & strSendMailScript & "}</script>"
RegisterClientScriptBlock("SendMailScript", strSendMailScript)
End If
此例为在前台添加javascript 函数。