Hi Guys, Take a look at the following code snippet:

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="UTF-8" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>

<script runat="server">

void Page_Load() {

Response.Write("This is a test");
}

</script>

</body>
</html>

It output the following:

This is a test
<html xmlns="http://www.w3.org/1999/xhtml">
<body>



</body>
</html>

(note that the text "This is a test" was inserted at the TOP of the page, rather than in the BODY)

I know that I can add to a Control instead of using Response.Write, but the thing is I want to insert some JS/JS SRC to the HEAD tag and I don't think there is a control that I can use for that (let me know if I'm wrong).

Is there a way that I can get Response.Write to output where it is placed (in this case between the BODY tags)?