Using VB to Build Your Web Site
Well, first of all I will take you through building your own PageGen application. It's quite simple. You first need to identify different areas in your HTML page that you might want to change. Here is an example:
<html> <head> <meta name="Keywords" content="Visual Basic"> <title>Test Page</title> </head> <body background=".,.images/mypic.gif"> <p>Some Text Here</p> </body> </html>
If this was my HTML page, then I would identify 3 sections. The first would be from the opening <html> tag to the closing </head> tag. This would be my header. The body section would be my content, and the </body></html> section would be my footer. Of course my content would probably be split up into more sections, but I am sure you can identify these yourselves.
Now that you have these sections, you need to identify where different bits of HTML will depend on which directory the page is in. E.g. If a page is in the root dir, it will need a different reference to an image location then a page in a sub dir.
I will use the demo page (above) and base the PageGen program around that. The first place where something will differ from page to page is the <title> tag. So, I will copy from the first <html> tag to the end of the meta tag and paste this in a text box called txtHeader. That is the only large amount of text that I will be using at one time, so I don't need to copy and more.
Page 3 of 5