Forum Moderators: open

Message Too Old, No Replies

How to Create a HTML file using ASP

         

turbanator

1:13 pm on Apr 23, 2004 (gmt 0)



hi all,

If possible, I would like to get some examples of code for me to create a HTML file using Asp.

A brief background:
I have an ASP page attached to a MS Access DB backend on which user can see and request changes to a current record. Once the user has typed in all the requested changes to a current record, they click on say "Submit", and thats where I want to create a HTML file which is an exact copy of the ASP with all of the data and formatting and ask the user to save that on their desktop.

I hope this makes sense. Thanks in advance

Avi

raywood

2:04 pm on Apr 24, 2004 (gmt 0)

10+ Year Member



I would post the form back to itself, let it do whatever submit processing you want to do and ask the user to save it.
ray

Easy_Coder

4:20 am on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the File System Object...

Dim fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile("c:\testfile.txt", True)

ukgimp

7:38 am on Apr 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



all the tools you could need

[w3schools.com...]