How to Dynamically Generate ASX Files Using ASP PagesID: Q184396
|
In some situations you may want to create an ASX file dynamically by using the Active Server Page (ASP) scripting language.
The following sample illustrates how this may be done:
<% Response.ContentType="video/x-ms-asf" %><ASX version="3.0">
<Entry>
<Ref href="mms://servername/filename.asf" />
</Entry>
Note that the Reponse.ContentType is immediately followed by the opening
tag of the ASX file. If these two entries are made on separate lines, then
Microsoft Internet Explorer inserts an extra blank line at the top of the
resulting ASX file. The NetShow Player does not recognize the ASX file if
this extra line is present.
Additional query words:
Keywords :
Version : WINNT:3.0
Platform : winnt
Issue type : kbhowto
Last Reviewed: June 23, 1999