Saving page as html values
Saving page as html values
am 01.07.2007 00:07:05 von 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
Re: Saving page as html values
am 01.07.2007 05:00:38 von Jon Paal
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" wrote in message news:4686d2f1$0$20564$4c368faf@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
>
Re: Saving page as html values
am 01.07.2007 15:27:13 von 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.
Re: Saving page as html values
am 01.07.2007 18:31:11 von Jon Paal
perhaps I misunderstood your question or maybe this will help as another example.
http://www.fentyler.co.uk/iishelp/iis/htm/asp/comp0gkt.htm
"Bam" wrote in message news:4687aaa3$0$4709$4c368faf@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.
>
Re: Saving page as html values
am 01.07.2007 23:10:28 von Adrienne Boswell
Gazing into my crystal ball I observed "Bam"
writing in news:4686d2f1$0$20564$4c368faf@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
Re: Saving page as html values
am 02.07.2007 16:14:05 von 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
Re: Saving page as html values
am 02.07.2007 16:44:39 von reb01501
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.
Re: Saving page as html values
am 02.07.2007 19:30:07 von 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