473,398 Members | 2,120 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,398 software developers and data experts.

Rendering a Page's HTML to disk.

Hi,

Is there anyway of once a Page has finished Rendering to the Render that
same HTML to disk?

TIA

MattC
Nov 19 '05 #1
3 903
"MattC" wrote ...
Is there anyway of once a Page has finished Rendering to the Render that

same HTML to disk?


There's probably a better way, but you can use a method of the XML stuff to
read in a webpage (xmlhttp rings a bell?) - anyway, you could potentially
read it in then save that string to a text file I guess...

http://www.aspfaq.com/show.asp?id=2173

As I said, I'm sure there's a better way..

Rob
Nov 19 '05 #2
Well I cheated in the end and used to following:

string m_OutputFile = "test.htm";

StreamWriter sw = new StreamWriter(m_OutputFile,true);
Server.Execute("mypage.aspx", sw);
sw.Flush();
sw.Close();

MattC

"MattC" <m@m.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

Is there anyway of once a Page has finished Rendering to the Render that
same HTML to disk?

TIA

MattC

Nov 19 '05 #3
You might look at the HttpResponse.Filter property. According to help:
"When you create a Stream object and set the Filter property to the
Stream object, all HTTP output sent by Write passes through the
filter."

I'm not sure if that means everything on the page, or just things you
explicitly do a response.write on. But worth trying.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
by: Matt Probert | last post by:
Is it just me (probably) or is Mozilla and the newer Firefox full of CSS rendering bugs? I ask, because some strange effects occur with Mozilla and Firefox which don't happen in Opera and dare I...
5
by: vMike | last post by:
Is there any benefit to stripping all the space from the page before rendering by overriding the page render and using the htmltextwriter and stringbuilder to strip linefeeds, tabs and extra space...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
6
by: Nautilus | last post by:
Hi there! We are rendering some PDF reports from an ASP.NET application, directly to the IE browser. Those reports are beign generated from a SQL Reporting Services server. We have the...
0
by: Jeff Morgan | last post by:
I have an application that runs on ASP.NET. We have been working through performance testing and it appears that at about 40-50 users, I start to get CPU bound. The application is a three form,...
2
by: Giedrius | last post by:
hi, i have an idea to make admin tool on home computer, that would generate html files using some kind of templates and database data and put these generated html files to public web server, witch...
5
by: Andreas Bergmeier | last post by:
Hi. Does anybody know whether html rendering is available on page level? I know the xhtmlConformance setting in the web.config - but I'd like such a configurability on page level because I have...
6
by: Justin.Voelker | last post by:
Can anyone clue me on on how to have my html page continue rendering past a MySQL error? If you visit www.Base2WebDesign.com, click login, type in anything for a username and password, then view...
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.