473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Saving an HTML file using ASP

Fox
Hi,

I am dynamically generating an HTML coded
file. Sometimes I need to save the file, but cannot
do it manually. I am hoping someone can
help me get started on how to code the file
with ASP in order to have it save itself ?
Of course I will generate it as an ASP file
first.

Regards,
Fox
Jul 19 '05 #1
3 2465
huh?
Look at FSO to create/save files
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Fox" <fox @ connexions .net> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am dynamically generating an HTML coded
file. Sometimes I need to save the file, but cannot
do it manually. I am hoping someone can
help me get started on how to code the file
with ASP in order to have it save itself ?
Of course I will generate it as an ASP file
first.

Regards,
Fox

Jul 19 '05 #2
Fox

"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:e#**************@TK2MSFTNGP12.phx.gbl...
huh?
Look at FSO to create/save files
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Fox" <fox @ connexions .net> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am dynamically generating an HTML coded
file. Sometimes I need to save the file, but cannot
do it manually. I am hoping someone can
help me get started on how to code the file
with ASP in order to have it save itself ?
Of course I will generate it as an ASP file
first.

Regards,
Fox


I've been trying FSO but I keep getting error 500.
All permissions are in place. I'm stumped.
Also, how do you save a complete file, do you
have to read through it and save it line by line ?
Or is there a way to save the complete page that
was generated, all at once ?

Thanks,
Fox
Jul 19 '05 #3
Save it all into a string and use the CreateTextFile() I think...or
something like that....show the code you are using....
P.S... are you 100% sure the permissions are right in IIS AND for the
Folder?
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Fox" <fox @ connexions .net> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...

"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:e#**************@TK2MSFTNGP12.phx.gbl...
huh?
Look at FSO to create/save files
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
..Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Fox" <fox @ connexions .net> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
Hi,

I am dynamically generating an HTML coded
file. Sometimes I need to save the file, but cannot
do it manually. I am hoping someone can
help me get started on how to code the file
with ASP in order to have it save itself ?
Of course I will generate it as an ASP file
first.

Regards,
Fox


I've been trying FSO but I keep getting error 500.
All permissions are in place. I'm stumped.
Also, how do you save a complete file, do you
have to read through it and save it line by line ?
Or is there a way to save the complete page that
was generated, all at once ?

Thanks,
Fox

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vikram | last post by:
Hi, Given below is my task. An user can open the xls file from my website (loaded on the top frame). After filling the Excel, he can click a send button at the bottom frame. By clicking the...
0
by: William Morris | last post by:
We have a number of clients using a web application. Each client sees a slightly different version of, say, a contact input page. As a simple example, Client #1 sees demographics, plus religious...
1
by: Sachin | last post by:
Hi, I am trying to save a file using the following code. MessageBox("Saving file","",MB_OK); _Module.m_pWebBrowser->get_Document(&pDisp); spHTMLDocument2 = pDisp; IPersistFile* pFile ...
6
by: Vijay | last post by:
I need to generate HTML files based on the some codes. One HTML file per code. I have the link (ex:http://123.234.345.456/WebPages/GetTestData.aspx?SomeCode=25), by passing the code as parameter I...
0
by: Kewal | last post by:
Hi All, I have a requirement of saving Excel files as HTML using C#. I have managed to write code for saving as HTLM file. however this seems to be not working in the once perticular case . ...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
7
by: Bam | last post by:
Hey gang. Is there a way, to automatically save a page that is db driven, as a page that contains html? i would like a page like http://tournamentsbyeck.com/past_standings3.asp to be...
3
by: ajaycfd | last post by:
hi all, I need to implement the following functionality in asp. I have got an asp page which renders some html onto the browser.Now instead of rendering the html to the browser i should save...
6
by: Eddie | last post by:
Hi all, I am displaying a number of reports, and giving the users an option to display them on the web or download them to Excel. If they want the Excel file, I just use the PHP header command...
5
by: JohnLorac | last post by:
Hello, can somebody help me with saving file into local disk using javascript? I made some sample code which unfortunately won't work :(. Applet sample file: public class IO extends...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.