Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
  #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
Reply With Quote
  #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.
======================================
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:07 AM.


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