HOWTO: Creating Personalized Channels using ASPID: Q174687
|
Internet Explorer 4.0 introduces the concept of Active Channels as a means to deliver personalized and up-to-date information to subscribed users, through the use of Channel Definition Format (CDF) files. Using Active Server Pages (ASP) with Microsoft Internet Information Server (IIS), a content provider on the Internet can dynamically generate a custom CDF file to deliver personalized information to users, based on user preferences. This article discusses a sample scenario where a personalized channel could be used using ASP, including the details of implementation.
A software company could provide an active channel that will allow users to
receive the latest information on software products, including support
information on these products. In order to be effective, a personalized
channel could be employed so that a user gets information only on products
he or she is interested in, not every product manufactured by that company.
The following are the steps to illustrate how a software company, such as
Microsoft, could create a personalized channel for this purpose, using ASP:
<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>
<ITEM 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>
</ITEM>
</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>
<ITEM 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>
</ITEM>
</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.
"Creating Active Channels" section of the Internet Client SDK documentation
CDF Reference in the Internet Client SDK documentation
For more information, please see the MSDN Web Workshop:
http://msdn.microsoft.com/workshop/default.asp
Additional query words:
Keywords : kbChannels kbIE400 kbIE401 kbIE500 kbDSupport InetSDKInfoDev
Version : WINDOWS:4.0,4.01,5.0
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: July 23, 1999