Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am updating an HTML Help file using HTML Help Workshop 4.74 and I want to add copyright and version information to the bottom of each page. I got the blurb to go to the bottom of the page easily enough
HTML
<div style="position: absolute; width: 100%; bottom: 0; text-align: center; padding: 10px; font-size:10px">
    Version 1.0.1<br />
    Copyright © 2016 <a href="http://www.codeproject.com/Members/PJArends" target="_blank">PJ Arends</a><br />
    <a href="http://www.codeproject.com/Articles/1099222/Tile-Grid-Control" target="_blank">http://www.codeproject.com/Articles/1099222/Tile-Grid-Control</a>
</div>

My problem now is if I update the version number, how can i get it updated on all the pages at once without having to go into each page and edit them all individually. I am sure there is a Java script or even VB script method I can use, but I do not know JS or VBS and I do not want to learn either just to get this simple thing working. So yes, this is a "Gimme Codez" type question.

Any help with a pointer in the right direction, or even better the actual code, would be greatly appreciated. Thanks :)

What I have tried:

I have tried google, but my google foo is extremely bad right now for this question.
Posted
Updated 11-Sep-16 13:53pm
Comments
gggustafson 18-Mar-20 14:10pm    
Use a MasterPage. I suggest something like https://www.codeproject.com/Articles/1250380/MasterPages-using-HTML-CSS-and-JavaScript and its errata https://www.codeproject.com/Articles/5247127/Master-Pages-using-HTML-CSS-and-JavaScript-Errata. The method in these articles is independent of Microsoft. And yes, it's a heavy-duty job updating an entire site, but once it's done, you find yourself well rewarded. Good luck

1 solution

If the project doesn't have a concept of a common page usually called a master page or a layout page in MVC, In ASP.NET WebForm you call also create and use a UserControl that contains the Copyright information. This will help you to apply for each pages easily. If you dont have such concepts. I'm afraid you may have to repeat this for all pages in the project. In web thing there are terms called Header and Footer that will contain the common things that will be applied for all pages. Header usually contains menus and Footer Copyright information.
 
Share this answer
 
v2
Comments
PJ Arends 13-Sep-16 22:28pm    
Thanks for your answer. I guess I will just end up writing a c++ script that will go through all the .htm files and update the version information in each one individually.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900