Article ID: 174687
Article Last Modified on 5/11/2006
<HTML> <TITLE>Microsoft Custom Subscription List</TITLE> <FONT FACE="VERDANA,ARIAL,HELVETICA" SIZE="2"> <H1>Microsoft Custom Product Subscription List</H1> Subscribe to your favorite Microsoft Internet product/s below to get the latest product information and access to support: <FONT FACE="courier" SIZE="3"> <PRE> <FORM METHOD="GET" ACTION="GenCDF.asp"> <input Type="checkbox" Name="IE4" VALUE="1">Internet Explorer <input Type="checkbox" Name="InetSDK" VALUE="1">Internet Client SDK </Pre> </FONT> <input Type=SUBMIT Value="Subscribe" Name="Validate" > </FORM> </HTML>
<%@ LANGUAGE=VBScript %>
<%
IE4 = Request ("IE4")
InetSDK = Request ("InetSDK")
%>
<% Response.ContentType = "application/x-cdf" %>
<?XML VERSION="1.0"?>
<CHANNEL HREF="http://www.microsoft.com">
<TITLE>Sample MS Custom Channel</TITLE>
<ABSTRACT>Demo Channel on how to get a customized subscription
using ASPs</ABSTRACT>
<SCHEDULE>
<INTERVALTIME DAY ="1" />
<EARLIESTTIME HOUR="1" />
<LATESTTIME HOUR="5" />
</SCHEDULE>
<% If Not IE4 = 0 Then %>
<CHANNEL HREF="http://www.microsoft.com/ie/ie40">
<TITLE>IE4</TITLE>
<ABSTRACT>IE4 Product Page</ABSTRACT>
<WWITEM HREF="http://www.microsoft.com/iesupport">
<TITLE>IE4 Support Page</TITLE>
<ABSTRACT>This is where you can get all your questions on
IE4 answered. :)</ABSTRACT>
</WWITEM>
</CHANNEL>
<% End if %>
<% If Not InetSDK = 0 Then %>
<CHANNEL HREF="http://www.microsoft.com/workshop/prog/inetsdk">
<TITLE>Internet Client SDK</TITLE>
<ABSTRACT>Internet Client SDK Product Page</ABSTRACT>
<WWITEM HREF="http://www.microsoft.com/support/inetsdk">
<TITLE>Internet Client SDK Support Page</TITLE>
<ABSTRACT>This is where you can get all your questions on
IE4 programmability answered. :)</ABSTRACT>
</WWITEM>
</CHANNEL>
<% End if %>
</CHANNEL>
CDF files that are dynamically generated through Active Server Pages
should have the following line inserted at the top of the CDF file
(before any CDF lines):
<% Response.ContentType = "application/x-cdf" %>
This ensures that servers return the MIME/content type
"application/x-cdf." Problems with CDF files being displayed inside the
browser as HTML text rather than presenting a subscription wizard are
very likely caused by the server returning an incorrect MIME type of
"text/html."
Note: As an alternative for IIS 4.0 site authors, the CDF file can be
created with a .cdx extension instead of .asp, and the MIME content type
line above can be omitted.
For simplicity, the <LOGO> tags have been omitted in the sample CDF
file. As a result, the default satellite dish logo is displayed in the
desktop channel bar and in the channel pane.
Keywords: kbhowto kbchannels KB174687