I am having an issue trying to get my asp page to write a javascript function. I get a Nested Script Block error when trying to execute the following:
Response.Write("<HTML>")
Response.Write("<HEAD>")
Response.Write("<TITLE>Title</TITLE>")
Response.Write("<script language=javascript>")
Response.Write("function loadMain(){")
Response.Write("parent.main.location=Main.asp")
Response.Write("}")
Response.Write("</script>")
Response.Write("</HEAD>")
Response.Write("<BODY>")
etc...
Any ideas would be great!
Response.Write("<HTML>")
Response.Write("<HEAD>")
Response.Write("<TITLE>Title</TITLE>")
Response.Write("<script language=javascript>")
Response.Write("function loadMain(){")
Response.Write("parent.main.location=Main.asp")
Response.Write("}")
Response.Write("</script>")
Response.Write("</HEAD>")
Response.Write("<BODY>")
etc...
Any ideas would be great!