473,387 Members | 1,423 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,387 software developers and data experts.

Saving page as html values

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
7 2959
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel Orner | last post by:
I've got an online system which I'm interested in making available offline - i.e. letting the user download certain HTML forms, fill them out offline, then the next time he logs into the site,...
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...
3
by: Mats Boberg | last post by:
Hi, I have problems with saving a bitmap to hdd from my asp.net page I get the following error: "A generic error occurred in GDI+." Code: Bitmap bmp = new Bitmap(240,120);
3
by: Clay Black | last post by:
I need to find a way to save an HTML page to the IIS server. What I need is to have a button that once it is clicked the current page being displayed is saved to a location on the local IIS...
1
by: Nikhil Patel | last post by:
Hi, I bind a grid to a DataView object. I lose the reference to the underlying DataTable and the DataSet in a postback. Here is the code. Page_Load works fine and I am able to see the rows in...
2
by: Mitesh | last post by:
I have an HTML page with references to PHP variables. This HTML is included from another PHP page. How can I save the HTML page dynamically i.e. when all the PHP variables are written into the HTML...
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...
3
by: pozze | last post by:
Hi, I've just made the change from ASP to .net. I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.