all groups > inetserver asp general > june 2007 >
You're in the

inetserver asp general

group:

Saving page as html values


Saving page as html values Bam
6/30/2007 6:07:05 PM
inetserver asp general: 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 converted to the html values. i want to do this, so the db doesn't
grow too large.

Is this possible?
If so, can someone point me in the right direction to get started please??

Thanks
Bam

Re: Saving page as html values Jon Paal [MSMD]
6/30/2007 8:00:38 PM
you can use MSWC.tools

Set oTools = Server.CreateObject("MSWC.Tools" )
oTools.processForm "output.html", "template.asp

http://aspalliance.com/176_Fast_Form_Processing


[quoted text, click to view]

Re: Saving page as html values Bam
7/1/2007 9:27:13 AM
[quoted text, click to view]
I am reading this. But I can't see how that wold convert asp to html.

Re: Saving page as html values Jon Paal [MSMD]
7/1/2007 9:31:11 AM
perhaps I misunderstood your question or maybe this will help as another example.

http://www.fentyler.co.uk/iishelp/iis/htm/asp/comp0gkt.htm


[quoted text, click to view]

Re: Saving page as html values Adrienne Boswell
7/1/2007 9:10:28 PM
Gazing into my crystal ball I observed "Bam" <bam@gig-gamers.com>
writing in news:4686d2f1$0$20564$4c368faf@roadrunner.com:

[quoted text, click to view]

I'm not sure exactly what you are trying to do. ASP pages are rendered
in HTML in the browser. View source, and you will see HTML, not ASP.
Do you want to write directly to a file? You could you the
filesystemobject to do that, create a file, myfile.html, write the HTML,
HEAD and BODY elements, write from the db, then end the BODY, HEAD and
HTML elements.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Re: Saving page as html values Bam
7/2/2007 10:14:05 AM
[quoted text, click to view]

Yes, that is what I am needing. Maybe I didn't explain as Jon stated.
What I want to do, is convert those bracket results retrieved from the DB to
html, then save the page as html in the web folder. I would have more pages
there, but would be less space taken up by the db.

I realize that the view sorce gives me excatly that, but what I need us to
use, as you are saying, the filesystemobject and create the page as the
tournament is being closed (after completion).

is there a page out there that shows me how to do this:

write the HTML,
HEAD and BODY elements, write from the db

or am i not looking clearly at this..

Bam

Re: Saving page as html values Bob Barrows [MVP]
7/2/2007 10:44:39 AM
[quoted text, click to view]

I'm thinking you are wasting your time here. What kind of database do
you have where you need to worry about how big it gets? And why aren't
you having the same concern about the disk space you are proposing to
waste? And why are you worrying about saving all that html when it can
easily be generated again using data from the database?


Jon's examples show you how to do this without using fso. If you are
determined to use fso, there are plenty of examples at www.aspfaq.com.
Basically, you write to a textstream object instead of to Response.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Re: Saving page as html values Bam
7/2/2007 1:30:07 PM
[quoted text, click to view]
+
it is mssql, and the size isn't "that" big of an issue, i was just trying
to keep it tidy. I have 4gb of mssql space.


And why aren't
[quoted text, click to view]
+
i am not worried, because I have 50gb of storage to use. with html pages,
it would take quite sometime before i would have to worry about space.


And why are you worrying about saving all that html when it can
[quoted text, click to view]


[quoted text, click to view]

I wanted to do this, because I would think that it would be neater, meaning
tidier, to do it this way, then to keep everything in the db. space really
isn't an issue in either the web itself, or in the db.

also, this would help me learn more about filesystem, or anything else that
would let me do that.

i understand that it may not be the best way to do it, but that doesn't mean
i don't want to learn how, and then learn which is the best way and why.

thanks for your reply Bob, I do respect your thoughts and ideas. :)

Bam

AddThis Social Bookmark Button