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

saving HTML file from aspx

hi...
i have webform *.aspx file, wich do some bd requests and generates (how it
should) html file to show on client pc..

now...
i want my web solution, this web form is part of this solution, to somehow
save this html-generated-by-aspx to a file on server computer, without
showing aspx to client
Nov 19 '05 #1
3 1442
KMA
Not quite clear what the purpose is. To disguise the fact that your running
ASP.NET on server? To cache the results for subsequent page request? To log
who asked for what? Explain more.

"David" <da*******@hotmail.com> wrote in message
news:uq**************@TK2MSFTNGP14.phx.gbl...
hi...
i have webform *.aspx file, wich do some bd requests and generates (how it
should) html file to show on client pc..

now...
i want my web solution, this web form is part of this solution, to somehow
save this html-generated-by-aspx to a file on server computer, without
showing aspx to client

Nov 19 '05 #2
i don't want aspx to be generated on every request. insted, were will be
a-pre-generated html, saved on server, and every time client browser
will see it...

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3
If I understood your requirement correctly, try the following:

Solution:
----------

private void button1_Click(object sender, System.EventArgs e)
{
string sURL = "www.google.com";
axWebBrowser1.Navigate(sURL);
}

// axWebBrowser1 event
private void axWebBrowser1_DocumentComplete(object sender,
AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)

{

string sFileName = System.Windows.Forms.Application.StartupPath +
"\\ATC.htm";

UCOMIPersistFile oPersistFile =
(UCOMIPersistFile)axWebBrowser1.Document;

oPersistFile.Save(sFileName, true);

}
"David Ichilov" wrote:
i don't want aspx to be generated on every request. insted, were will be
a-pre-generated html, saved on server, and every time client browser
will see it...

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #4

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

Similar topics

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...
2
by: Jay Walker | last post by:
I created a custom DataGridColumn based on Marcie Robillard's MSDN Article: Creating Custom Columns for the ASP.NET Datagrid...
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...
2
by: M. D'Costa | last post by:
Hello, I have an ASP.NET application that allows a user to save a csv file with certain data they requested. The problem is as follows: On my machine it works fine and prompts me to save the...
4
by: Husam | last post by:
Hi EveryBody: Is there any way to save my text file in Registry Key instaed of saving it in Drive C: or any other drive drive ? any help will be appreciated regard's Husam
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
13
by: =?Utf-8?B?emlyb3M=?= | last post by:
We have a need, after a user fill out a form, to save that page (aspx) and to send it as attachment by email , and to save it to a database for later retrieval any ideas how to save the aspx...
6
by: John Kotuby | last post by:
Hi all, I am using a 3rd party program in a VS2005 web project. The tool takes as input a string containing HTML and converts it to RTF. I have been creating a page by dynamically loading...
10
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0, and need to know how to save and use an image that is stored in an SQL Server image datatype. How can I do this using ASP.NET? Thanks.
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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...

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.