By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,120 Members | 1,799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,120 IT Pros & Developers. It's quick & easy.

Saving page as html values

P: n/a
Bam
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
Jun 30 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
you can use MSWC.tools

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

http://aspalliance.com/176_Fast_Form_Processing
"Bam" <ba*@gig-gamers.comwrote in message news:46***********************@roadrunner.com...
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

Jul 1 '07 #2

P: n/a
Bam
you can use MSWC.tools
>
Set oTools = Server.CreateObject("MSWC.Tools" )
oTools.processForm "output.html", "template.asp

http://aspalliance.com/176_Fast_Form_Processing
I am reading this. But I can't see how that wold convert asp to html.
Jul 1 '07 #3

P: n/a
perhaps I misunderstood your question or maybe this will help as another example.

http://www.fentyler.co.uk/iishelp/ii...p/comp0gkt.htm
"Bam" <ba*@gig-gamers.comwrote in message news:46**********************@roadrunner.com...
>you can use MSWC.tools

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

http://aspalliance.com/176_Fast_Form_Processing
I am reading this. But I can't see how that wold convert asp to html.

Jul 1 '07 #4

P: n/a
Gazing into my crystal ball I observed "Bam" <ba*@gig-gamers.com>
writing in news:46***********************@roadrunner.com:
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??
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

Jul 1 '07 #5

P: n/a
Bam
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.
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
Jul 2 '07 #6

P: n/a
Bam wrote:
>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.

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..
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.
Jul 2 '07 #7

P: n/a
Bam
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?
+
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
you having the same concern about the disk space you are proposing to
waste?
+
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
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.
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
Jul 2 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.