Hyuga Posted August 12, 2005 Posted August 12, 2005 Why, when I'm trying to do that inside a sub: Dim MsgBoxText As String= "No eres responsable de ninguna unidad" Response.Write("<script language='JavaScript'>") Response.Write("alert('" & MsgBoxText & "');") Response.Write("</script>") My asp page gets an error? It looks like my code gets commented after I wrote that, and the interpreter doesn't read correctly the rest of my code and I get one error. Any Idea? Quote
Hyuga Posted August 12, 2005 Author Posted August 12, 2005 Solved. The only change needed: Response.Write("<" & "/script>") I don't understand the reason, but it works. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.