ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 23rd, 2000, 04:59 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
ASP to HTML and save it

<i><b>Originally posted by : Mike (jeffreys_mike@hotmail.com)</b></i><br />I need to save an ASP page as an HTML file multiple times (so they must have different names each time), and then be able to the .html files to view.<br /><br />

Reply With Quote
  #2  
Old March 30th, 2000, 02:51 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Chris Snider (csnider@worldnet.att.net)</b></i><br />Mike,<br /><br />You can use the Scripting.FileSystemObject (FSO) to write the output of teh asp code to. Since you would normally do a Response.Write "some stuff and html code" for each line, you can use the Filesystemobject ot open a text stream to a file and write the data to file instead of the response object. After all processing has taken place, you can Response.Redirect "the newly created file". <br /><br />If you have to have the same code generate identical files with different names, write the initial file, then use the .FileCopy method of the FSO to make the copies with new names.<br /><br />If the code produces multiple files with different names and different content all in one pass, put the HTML file writer piece into a sub or function and pass the data to it as required.<br /><br />If you need further explanation or comments, please email me.<br /><br />Chris Snider<br /><br /><br />------------<br />Mike at 3/23/2000 2:59:47 PM<br /><br />I need to save an ASP page as an HTML file multiple times (so they must have different names each time), and then be able to the .html files to view.<br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > ASP to HTML and save it


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway