Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Save page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Save page

 Post Reply Post Reply Page  <12
Author
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2004 at 5:10pm
he wants to save the data into an HTML file so you can view it via href links... you'd just compose an HTML document with all your data in it and then save it with FileSystemObject
Back to Top
single_minded98 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2004
Location: Malaysia
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote single_minded98 Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 1:03am

Thanks pmormr ...

I'm before this not doing the web development can u give me example code that can help me doing that thing.

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 7:03pm
i'm not exactly sure how i would do this but here's an example that should give you the right idea...


<%
Dim myHTML
myhtml= "This is html code..."
Dim fso, newFile
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Dim filename
filename = "test.html"
Set newFile = fso.createtextfile("c:\myFiles\" & filename, true)
newFile.WriteLine(myHTML)
newfile.close
set fso = nothing
set newfile = nothing
%>

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 7:04pm
just make sure your filename is different for each time or it will either overwrite your file that was there before or give you an error
Back to Top
single_minded98 View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2004
Location: Malaysia
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote single_minded98 Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2004 at 7:57pm

Thanks pmormr...

I'll try first

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.