Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 17th, 2004, 07:57 AM
Registered User
 
Join Date: Jul 2003
Location: , , Pakistan.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create HTML page from a dynamic ASP page

Hi folks,

This is my problem, and i am stuck here.
I want to send a newsletter to all the members. If i have the newsletter in HTML file, i can do it easily, just Read the html file with FileSystem Object and then send it in email body.
But what if i have an ASP page that generates some results at run time, takes some data from database and display it. And i want to send those results in Newsletter.
Can there be a possibility where i could 1st generate an HTML page on the basis of results of ASP page and save it on my server and then send that page in newsletter?
Any help please.

Musharaf Choudhry
  #2 (permalink)  
Old March 17th, 2004, 08:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

One possibility is to use the FileSystemObject to create the HTML file. In the ASP, open the file through FSO, and write the HTML to the HTML file, with the results of your data from the database.

Brian Mains
  #3 (permalink)  
Old March 18th, 2004, 09:31 PM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Another option:
The XMLHTML object can return the entire html of a page in a string form, you can then save that to your file system as html
See- http://www.4guysfromrolla.com/webtech/110100-1.shtml


======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET - Static Page and Dynamic Page sohrabus ASP.NET 2.0 Professional 2 April 18th, 2007 11:42 PM
Can't create html page from template thiwan Dreamweaver (all versions) 4 June 13th, 2005 11:53 AM
Dynamic connection string from ASP page jayaraj Classic ASP Databases 2 July 12th, 2004 07:44 AM
Create an ASP page that will allow deletion jturlington Classic ASP Databases 17 May 18th, 2004 01:59 AM
DT Picker on HTML or ASP page libranist Classic ASP Professional 0 November 27th, 2003 04:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.