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
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] "Bam" <bam@gig-gamers.com> 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 >
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] "Bam" <bam@gig-gamers.com> 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. >
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] > 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
[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. >
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
[quoted text, click to view] 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.
[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?
+ 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] > 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 [quoted text, click to view] > easily be generated again using data from the database?
[quoted text, click to view] > > > 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
Don't see what you're looking for? Try a search.
|