473,757 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1127
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.o detocode.com> wrote in message
news:4j******** *************** *********@4ax.c om...
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.o detocode.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 'ProduceWeBPage s' 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******** *********@newsf e4-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******** **********@news fe6-gui.ntli.net...
Thanks very much. However you average club secretary is looking to click
on a (batch) run 'ProduceWeBPage s' 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******** *********@newsf e4-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.H tmlTextWriter writer ) {
System.IO.TextW riter tw = System.IO.File. CreateText( @"c:\sample.htm l"
);
System.Web.UI.H tmlTextWriter hw = new System.Web.UI.H tmlTextWriter( 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**@discussio ns.microsoft.co m> wrote in message
news:6D******** *************** ***********@mic rosoft.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
1506
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) and new ones for SEO purposes, I want to make sure there is no other way to do this? Currently I load my detail pages this way: /index.asp?productcode=444
8
5260
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 developing a web-based application, one part of which involves allowing the user the ability to page through transaction "history" information. The _summary_ history table will have the following fields: ServiceName, Date, User-Ref1, User-Ref2,...
55
3474
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 know where I can find that article, or why the thread appears to be missing from the archives? Here's the link: ...
18
13927
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 I know nothing, so I don't skip anything. I considered Microsoft Visual C# .NET Step by Step 2003 by Sharp/Jagger, but then I read a few reviews and it doesn't sound so good. I have XP Home, and I plan to buy only Visual C#, not Visual Studio,...
9
2671
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 all the time the app is running. it is persisted to an Xml file when necessary. i keep a static filestream on the xml file. the advantage of this is that i can lock the filestream object to prevent concurrent reading/writing. the code works...
5
3177
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 querying a database, negotiatinig lots of if-then-else logic and echo'ing html code out on port 80 every time a page is requested has to be a huge waste of resources. Why not use that logic to print static html instead of dynamic?
17
9396
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 bundled with java sdk 6 from sun, the prob with it is that , if i use for-each loop, it says to use option -source 1.5, i used it, didnt work, so either the IDE is faulty, or somethin is wrong with my sys config. so, can anyone recommend an IDE for...
9
1862
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 mistake but I am stuck. Any assistance would be greatly appreciated. Just be easy...I am still new. Thanks. ********************************************************************* import java.io.*; import javax.swing.JOptionPane; import...
19
3313
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 the same. What are the things I need to keep in my mind when doing this process.
0
9487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9735
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7285
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6556
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.