Html:多个页面上的一个值 [英] Html: one value on multiple pages

查看:79
本文介绍了Html:多个页面上的一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HTML Help Workshop 4.74更新HTML帮助文件,我想在每个页面的底部添加版权和版本信息。我得到了简单到底的页面底部

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

<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>



我现在的问题是如果我更新版本号,我怎样才能在所有页面上更新它一次无需进入每个页面并单独编辑它们。我确信有一个Java脚本甚至是我可以使用的VB脚本方法,但我不知道JS或VBS,我也不想学习这个简单的工作。所以,是的,这是一个Gimme Codez类型的问题。



指向正确方向的任何帮助,甚至更好的实际代码,将不胜感激。谢谢:)



我尝试了什么:



我试过谷歌,但我的谷歌foo现在非常糟糕这个问题。


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.

推荐答案

如果项目没有通常称为母版页的公共页面的概念或MVC中的布局页面,在ASP.NET WebForm中,您还调用并创建并使用包含版权信息的UserControl。这将有助于您轻松申请每个页面。如果你没有这样的概念。我担心你可能不得不对项目中的所有页面重复这一点。在web事物中有一些名为 Header Footer 的术语,它们将包含将应用于所有页面的常见内容。 标题通常包含菜单和页脚版权信息。
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.


这篇关于Html:多个页面上的一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆