473,387 Members | 1,757 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.

Generating HTML from an aspx page.....

Hi

I have an .aspx page thats part of a site, its usually called by a user in a
browser with an ID in the querystring from where it does lots of exciting
things and database reads to produce the page - nothing too different or
exciting there.

However, what I'd like to be able to do is to have the page run without the
help of a browser (say from the command line) and generate the HTML output
into a file I can pick up for later use.

Can it be done ?

Jane
Jul 21 '05 #1
1 1759
I don't think there is an easy way to refactor an asp.net page into a
stand-alone HTML generating exe. Its worth pointing out that IIS does not
require any assistance from a browser to render an asp.net page. So....

You can write another application that uses System.Net.HttpWebRequest &
System.Net.HttpResponse to request the results from the page, and stream
them out to a file. Its probably about 6 lines of code to do it all.

Nick.

"Jane" <JS**@hotmail.com> wrote in message
news:c8*********@sparta.btinternet.com...
Hi

I have an .aspx page thats part of a site, its usually called by a user in a browser with an ID in the querystring from where it does lots of exciting
things and database reads to produce the page - nothing too different or
exciting there.

However, what I'd like to be able to do is to have the page run without the help of a browser (say from the command line) and generate the HTML output
into a file I can pick up for later use.

Can it be done ?

Jane

Jul 21 '05 #2

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

Similar topics

4
by: CGuy | last post by:
Hi Gurus, I have a rather unique requirements in my ASP.NET application - I need to create image buttons on the fly while rendering a page. The scenario is like this - the user can enter some...
5
by: WL | last post by:
Hi, I'm trying to build an .ASPX file that returns the contents of a .js file, so that I can use: <script language="JavaScript" src="/mypage.aspx" type="text/javascript"></script> Even...
8
by: Lars Netzel | last post by:
Hey! I wrote a message yersterday and got some good answers and have now managed to generate a nice image. The problem is that it's all generated in an Images.Aspx file and I don't really want...
2
by: cnickl | last post by:
I’m using the usual VisualStudio setup. That is to have a “Code Behind” (somename.aspx.vb) file with all the code and the actual HTML code somename.aspx) separate. I like this setup, but now...
4
by: Lee Chapman | last post by:
Hi, I am having difficulty getting the ASP.NET framework to generate valid XHTML. My immediate problem surrounds user input in, for example, textbox controls. I consider characters such as...
1
by: Andy Fish | last post by:
Hi, In my aspx web application, I am generating a list of items in a menu down the left-hand side. Different items in the list may have different controls in, and this is data-driven at runtime....
1
by: Jane | last post by:
Hi I have an .aspx page thats part of a site, its usually called by a user in a browser with an ID in the querystring from where it does lots of exciting things and database reads to produce the...
2
by: CharlesA | last post by:
Hi folks, I'm using ASP.net with Framework vs 1.1 I'm inheriting from a custom rolled master page class that is just that a class that inherits from web.ui.page but it has no designer associated...
2
by: zino | last post by:
on windows XP and visual studio 2005, I cannot load a javascript or a style sheet file. when I try to run the aspx page I get a client side runtime error stating: " A Runtime error has occurred...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...

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.