Some of the previously collected information---use ASP to launch your own web channel

Source: Internet
Author: User
Tags chr
Want to build your own site channel files, look at the following code.
This is just an example, but I think you can build your own channel based on it.
Users will be able to subscribe to your site's channel as soon as the user downloads the. cdf file.
<%
' Open the database connection and define the variables to be used for formatting.
Set dbconn = Server.CreateObject ("ADODB. Connection ")
Dbconn.open "Dsn=yourdsn"

BR = CHR (10)
Quote = Chr (34)

' used to generate channel format
BODY = "<channel" & BR
BODY = Body & "Title =" & Quote & "your company name" & Quote & BR
BODY = Body & "longname =" & Quote & "Your detailed company name" & Quote & BR
BODY = Body & "Abstract =" & Quote & "Your Channel description" & Quote & BR
' Channel files generated on your site (. cdf)
BODY = Body & "SELF =" & Quote & "HTTP://YOURURL/POINTCAST.CDF" & Quote & BR
BODY = Body & "ContentID =" & Quote & "0" & Quote & BR
BODY = body & "ratings =" & Quote & "' (PICS-1.1
"Http://www.rsac.org/ratingsv01.html" L gen True comment "RSACi North America
Server ' by ' santry@pin-santry.com for ' http://yoururl.com ' on
"1997.09.18t17:57-0800" R (N 0 s 0 v 0 L 0)) ' "& Quote & BR
BODY = Body & "Frequency =" & Quote & "A" & Quote & BR
BODY = Body & "authenticate =" & Quote & "No" & Quote & BR
BODY = body & ">" & BR & BR

SQLQ = "SELECT * from Yourdb WHERE enterdate = #" & Date () & "#"
' It's going to launch today's new stuff.
Set Makechannel = Dbconn.execute (SQLQ)
Do Until makechannel.eof
BODY = body & "<item" & BR
BODY = Body & "Title =" & Quote & Makechannel ("H



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.