永久更新HTML页面 [英] Update HTML page permanently

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

问题描述

你好,



i希望用户能够在我的html页面中更新,有能力添加文档节点然后任何人访问该网站都可以看到修改后的版本由用户。我怎么做?



例如



i在主页面上有标签

欢迎来到您的网站

i希望让用户更改它,...说早上好

所以任何其他人浏览网站,请参阅早上好

i知道使用数据库很容易,但我使用html5或不需要设计数据库的方式搜索。



帮助我尽快删除

解决方案

你的方向错误。您需要更新的不是网页,而是与每个客户配置文件和任何每个客户数据相关联的服务器端数据。通常,它将是某些数据库中的数据。至于页面,它们应该基于一些ASP.NET页面动态生成,这些页面使用嵌入在这些页面中的服务器端代码进行参数化。



如何实现这一目标?通过学习ASP.NET,它显示在您的问号标签中。我不是在开玩笑。从本质上讲,整个ASP.NET技术致力于解决像你制定的那样的问题。如果你到目前为止没有意识到这一点,那就意味着你不是真的使用ASP.NET而需要学习它。如果使用关系数据库进行数据存储(到目前为止,最典型的选择),也可以使用ADO.NET。那么,你走了:

http://en.wikipedia.org/wiki/ASP。 NET [ ^ ],

http://www.asp.net/get-started [ ^ ],

http://en.wikipedia.org/wiki/ADO.NET [ ^ ],

http://msdn.microsoft.com/en-us/library/aa286484.aspx [ ^ ]。



此外,此CodeProject文章将帮助您开始使用立即开始使用ADO.NET:使用A DO.NET适合初学者 [ ^ ]。



-SA


我可以创建一个可编辑的文本标签,以便用户可以编辑网页上的标签。但是,如果要向所有其他用户显示相同的文本,则必须使用数据库。



下面的代码将有助于编辑html内容。

Contenteditable=true有助于这样做

 <  < span class =code-leadattribute> p     contenteditable   =  true > 这是一个段落。它是可编辑的。尝试更改此文字。<   / p  >  


hello ,

i want to enable user to update in my html page ,has the ability to add document nodes and then anyone access the website can see the modified version by the user . how i can do it ?

for example

i have label in main page
" welcome to your site "
i want to make users change it ,..say to "Good morning "
so any other person browse the site , see " good morning "
i know that it is easy using database but i search for a way using html5 or something that don't require to design database .

help me plz ASAP

解决方案

You are going in wrong direction. What you need to update is not the Web page, but server-side data associated to each customer profile and any per-customer data. Typically, it would be a data in some database. As to the pages, they should be generated dynamically based on some ASP.NET pages parametrized with server-side code embedded in these pages.

How to achieve that? By learning ASP.NET, which is shown in your question tag. I'm not joking. Essentially, the whole ASP.NET technology is devoted to the problems like the one you formulated. If you did not realize it so far, it means that you are not really using ASP.NET and need to learn it. In case of using a relational database for data storage (by far, the most typical choice), also ADO.NET. So, here you go:
http://en.wikipedia.org/wiki/ASP.NET[^],
http://www.asp.net/get-started[^],
http://en.wikipedia.org/wiki/ADO.NET[^],
http://msdn.microsoft.com/en-us/library/aa286484.aspx[^].

Also, this CodeProject article will help you to get started with ADO.NET in no time: Using ADO.NET for beginners[^].

—SA


I thing you can create a editable text label so that user can edit label present on the web page. But if you wants to show the same text to all other user then you have to use database.

Below code will help to edit the html content.
Contenteditable=true helps to do so

<p contenteditable="true">This is a paragraph. It is editable. Try to change this text.</p>


这篇关于永久更新HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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