L
Lee Martin
I'm trying to use ASP to dynamically create a metafile
playlist for Windows Media Player 9. This code returns the
correct XML structure, but keeps the ASP/HTML header
information, so WM9 cannot use it. How can I do this so
that all that is returned is the XML?
Lee
Code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
</head>
<body>
<script>
<%Response.ContentType = "video/x-ms-wma"%><%
Response.expires=0 %>
<%
var URLinfo = Request.Querystring("URLinfo");
%>
<%
Response.Write("<ASX VERSION='3.0'>");
Response.Write("<ENTRY>");
Response.Write("<TITLE>Playlist Test Title</TITLE>");
Response.Write("<AUTHOR>Internal Communications</AUTHOR>");
Response.Write('<REF HREF ="');
Response.Write(URLinfo);
Response.Write('" />');
Response.Write("</ENTRY>");
Response.Write("</ASX>");
%>
</script>
</body>
</html>
playlist for Windows Media Player 9. This code returns the
correct XML structure, but keeps the ASP/HTML header
information, so WM9 cannot use it. How can I do this so
that all that is returned is the XML?
Lee
Code:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
</head>
<body>
<script>
<%Response.ContentType = "video/x-ms-wma"%><%
Response.expires=0 %>
<%
var URLinfo = Request.Querystring("URLinfo");
%>
<%
Response.Write("<ASX VERSION='3.0'>");
Response.Write("<ENTRY>");
Response.Write("<TITLE>Playlist Test Title</TITLE>");
Response.Write("<AUTHOR>Internal Communications</AUTHOR>");
Response.Write('<REF HREF ="');
Response.Write(URLinfo);
Response.Write('" />');
Response.Write("</ENTRY>");
Response.Write("</ASX>");
%>
</script>
</body>
</html>