Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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
Posted
Comments
Sergey Alexandrovich Kryukov 21-Aug-14 18:29pm    
Just use ASP.NET, instead of just tagging it in your post. :-)
—SA

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
 
Share this answer
 
v3
Comments
Hercal 21-Aug-14 18:41pm    
I think there is a new technology in HTML5 that enables you to save txt files in server
any way , thank you :)
Sergey Alexandrovich Kryukov 21-Aug-14 19:02pm    
The problem you describe is unrelated to that. I told you what you can do.
1) You can always save any file on server with HTML4 and server-side;
2) For your purpose, you should not save any files on server.
—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
HTML
<p contenteditable="true">This is a paragraph. It is editable. Try to change this text.</p>
 
Share this answer
 
v2

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