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

Beginners Question Regarding Static Web Pages

Hi
I am a converting VB6 programmer. Having completed a Windows forms project ,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which display
segments of data bases. The applicaton is used by a lot of sporting bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot net
looking for ways to do this. It is possible to use the function of Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson
Nov 19 '05 #1
8 1100
Hi Roger:

I'm trying to understand your basic requirement.

Do you need to generate HTML files based on database content?
Or do you want to convert static content to something a little more
dynamic with ASP.NET web forms?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 30 Apr 2005 20:56:33 GMT, "Roger stevenson"
<ro************@ntlworld.com> wrote:
Hi
I am a converting VB6 programmer. Having completed a Windows forms project ,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which display
segments of data bases. The applicaton is used by a lot of sporting bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot net
looking for ways to do this. It is possible to use the function of Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson


Nov 19 '05 #2
Thanks for your interest
I need to generate HTML Files which basically consist of a header section
and then a Table
The table contains , ranked results from competitions usuall having player
name on the left
maybe 10 results in the line then a performance section on the right
containing Sums, Averages, BestX's etc on the right

If it was an aspx page I was thinking I could get a Table from the database
contaiing the selected data, calculate the perfomance columns and then
just bind it to control on the form representing the table. Then all I need
to do is save the rendered output, ready for uploading.
There are typically about 10 of these tables published each week updated by
the week's performances.
I wrote the application for my own club. It proved very popular and I have
ended up running it for a lot of clubs. The next verssion is going to pull
all the club variants into a generalised common system and make it friendly
enough to hand it over to club secretaries to run
The system will add some pages to an otherwise static web site that needs
uploading to the web site by the club secretary

Roger Stenson

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:4j********************************@4ax.com...
Hi Roger:

I'm trying to understand your basic requirement.

Do you need to generate HTML files based on database content?
Or do you want to convert static content to something a little more
dynamic with ASP.NET web forms?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 30 Apr 2005 20:56:33 GMT, "Roger stevenson"
<ro************@ntlworld.com> wrote:
Hi
I am a converting VB6 programmer. Having completed a Windows forms project
,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which
display
segments of data bases. The applicaton is used by a lot of sporting bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot
net
looking for ways to do this. It is possible to use the function of Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson

Nov 19 '05 #3
Hi Roger:

Take a look at the DataGrid control in the ASP.NET toolbar. You can
bind this control to a SQL query that pulls records from the database.
The control will generate a table and is easy to customize, sort, and
page. A google search will give you lots of sample code to look at,
too.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 01 May 2005 05:59:27 GMT, "Roger stevenson"
<ro************@ntlworld.com> wrote:
Thanks for your interest
I need to generate HTML Files which basically consist of a header section
and then a Table
The table contains , ranked results from competitions usuall having player
name on the left
maybe 10 results in the line then a performance section on the right
containing Sums, Averages, BestX's etc on the right

If it was an aspx page I was thinking I could get a Table from the database
contaiing the selected data, calculate the perfomance columns and then
just bind it to control on the form representing the table. Then all I need
to do is save the rendered output, ready for uploading.
There are typically about 10 of these tables published each week updated by
the week's performances.
I wrote the application for my own club. It proved very popular and I have
ended up running it for a lot of clubs. The next verssion is going to pull
all the club variants into a generalised common system and make it friendly
enough to hand it over to club secretaries to run
The system will add some pages to an otherwise static web site that needs
uploading to the web site by the club secretary

Roger Stenson

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:4j********************************@4ax.com.. .
Hi Roger:

I'm trying to understand your basic requirement.

Do you need to generate HTML files based on database content?
Or do you want to convert static content to something a little more
dynamic with ASP.NET web forms?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 30 Apr 2005 20:56:33 GMT, "Roger stevenson"
<ro************@ntlworld.com> wrote:
Hi
I am a converting VB6 programmer. Having completed a Windows forms project
,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which
display
segments of data bases. The applicaton is used by a lot of sporting bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot
net
looking for ways to do this. It is possible to use the function of Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson


Nov 19 '05 #4
Thanks very much. However you average club secretary is looking to click on
a (batch) run 'ProduceWeBPages' which runs down a schedule of his
requirements, generates all the related html files and puts them into an
output fule ready to upload to the web site.
Its the batch aspects of working through a schedule of pages and saving the
rendered output that I can not see how to do in an asp.net.system
The current system its a vb6 batch job that looks at the schedule, recovers
the data, clothes it in html and writes the html documents one by one.
Roger
"Roger stevenson" <ro************@ntlworld.com> wrote in message
news:5i*****************@newsfe4-gui.ntli.net...
Hi
I am a converting VB6 programmer. Having completed a Windows forms project
, andbefore moving on to some of my ASP.Net projects I want to add a lot
of function to a VB 6 application that generates static web pages which
display segments of data bases. The applicaton is used by a lot of
sporting bodies that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot
net looking for ways to do this. It is possible to use the function of
Asp.Net to generate the rendered output , save it in a file and then move
on to another form and do the same. Or do I write a module which finds the
data and generates the text output.in the old way
Roger Stenson

Nov 19 '05 #5
Why in the world would you want to create an ASP.NET application that
generates static HTML pages. That can happen, but those static pages are
going to exist on the Web server - not the client - so your "average
secretary" isn't going to be able to then upload to their own Web site. It
sounds like your VB6 app is doing a great job. Can you clarify for us what
benefits you want to achieve by migrating this thing to ASP.NET?
"Roger stevenson" <ro************@ntlworld.com> wrote in message
news:Sp******************@newsfe6-gui.ntli.net...
Thanks very much. However you average club secretary is looking to click
on a (batch) run 'ProduceWeBPages' which runs down a schedule of his
requirements, generates all the related html files and puts them into an
output fule ready to upload to the web site.
Its the batch aspects of working through a schedule of pages and saving
the rendered output that I can not see how to do in an asp.net.system
The current system its a vb6 batch job that looks at the schedule,
recovers the data, clothes it in html and writes the html documents one by
one.
Roger
"Roger stevenson" <ro************@ntlworld.com> wrote in message
news:5i*****************@newsfe4-gui.ntli.net...
Hi
I am a converting VB6 programmer. Having completed a Windows forms
project , andbefore moving on to some of my ASP.Net projects I want to
add a lot of function to a VB 6 application that generates static web
pages which display segments of data bases. The applicaton is used by a
lot of sporting bodies that largelely get by on non-interactive free
sites
I have just finished a quick skim through a book on Professional ASP dot
net looking for ways to do this. It is possible to use the function of
Asp.Net to generate the rendered output , save it in a file and then move
on to another form and do the same. Or do I write a module which finds
the data and generates the text output.in the old way
Roger Stenson


Nov 19 '05 #6
Roger,

I have been searching for two days for articles that would give a clue as
how you can do this, but all have fallen short.

Essentially, what you're looking for is a way to take the standard
Response.Output stream and send it to a file that you define rather than back
to the client browser that requested it. By doing that, you can design a web
page using mostly static HTML and then run the web page in a loop, for
example, and produce 1000 static product pages.

let me know if you figure this out.
"Roger stevenson" wrote:
Hi
I am a converting VB6 programmer. Having completed a Windows forms project ,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which display
segments of data bases. The applicaton is used by a lot of sporting bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot net
looking for ways to do this. It is possible to use the function of Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson

Nov 19 '05 #7
Roger,

I contacted a friend and we came up with this...

protected override void Render( System.Web.UI.HtmlTextWriter writer ) {
System.IO.TextWriter tw = System.IO.File.CreateText( @"c:\sample.html"
);
System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter( tw
);
base.Render( hw );
tw.Close();
}

Add that code to an ASPX (rename the sample.html file to your own filespec)
and you're in business.
"Roger stevenson" wrote:
Hi
I am a converting VB6 programmer. Having completed a Windows forms project ,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which display
segments of data bases. The applicaton is used by a lot of sporting bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot net
looking for ways to do this. It is possible to use the function of Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson

Nov 19 '05 #8
If you want want to build html from the browser you really need to implement
the MSHTML Editor and run some client script.
"pete" <pe**@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
Roger,

I have been searching for two days for articles that would give a clue as
how you can do this, but all have fallen short.

Essentially, what you're looking for is a way to take the standard
Response.Output stream and send it to a file that you define rather than
back
to the client browser that requested it. By doing that, you can design a
web
page using mostly static HTML and then run the web page in a loop, for
example, and produce 1000 static product pages.

let me know if you figure this out.
"Roger stevenson" wrote:
Hi
I am a converting VB6 programmer. Having completed a Windows forms
project ,
andbefore moving on to some of my ASP.Net projects I want to add a lot of
function to a VB 6 application that generates static web pages which
display
segments of data bases. The applicaton is used by a lot of sporting
bodies
that largelely get by on non-interactive free sites
I have just finished a quick skim through a book on Professional ASP dot
net
looking for ways to do this. It is possible to use the function of
Asp.Net
to generate the rendered output , save it in a file and then move on to
another form and do the same. Or do I write a module which finds the data
and generates the text output.in the old way
Roger Stenson

Nov 19 '05 #9

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

Similar topics

3
by: Ardin | last post by:
I know via mod rewrite you can mimi static pages, but how does one do this for ASP? Before I go crazy modifying my code to generate a static page for all of our products (1000's of html pages)...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
55
by: Cindy | last post by:
Hello!! I'm new at access and there's is an article by Arvin Meyer for beginners that is references in Google Groups but I can't seem to find the original post with the article's URL. Does anyone...
18
by: John Salerno | last post by:
Hi all. I was hoping some of you could recommend a book or two that would help me get started with the basics of C#. I have a slight knowledge of programming, but basically I want to start out like...
9
by: Tim_Mac | last post by:
hi, i'm not sure if i have chosen the best approach, but it seemed quite good to me. i have a collection class, containing business objects. the collection class is static and remains in-memory...
5
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
17
by: JD | last post by:
hi, i m new to java, i want to know if there is a good and free Java IDE that i can use that'll help me, i dont care if its complicated , i just want it to be good, i tried netbeans which comes...
9
by: iceman4022 | last post by:
Here is a program I have to write for an assignment. I cannot get it to exit when I click cancel and for some reason I get an error when you enter 3 as your option. I am sure it is a beginners...
19
by: Ganesh J. Acharya | last post by:
Hi there, I want to redesign my website and make that look professional. I made this about 6 years ago with very little knowledge of internet. Today I am getting about 4000 visitors a day for...
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: 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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.