View Full Version : Content updating/adding

09-07-2006, 02:49 AM
Might be a dumb question but...

How is content updated or added to a web page? If you manually code the html, then you change the text but how do you do that with a database?

I'm thinking that you generate a form so the the user can provide the topic/content title and the verbiage into a memo field, content type, e.g. news updates, club info, etc so that the approprite page can be targeted.

Now what? How is the updated or new content then added to a page - with a <div id=unique> tag and unique ID #?

While I've taken classes in VB, .net (C#, VB) and Javascript to include asp, I've cannot remember if any addressed how content was added - if they did I was asleep 8-). For products/catalog display, this is simple since its tabular in nature. But how do you do it if you have a section dealing with today's news and then another part for something like new activities or sale today.

Believe in visual studio .net 2005, there is a new object called a contentholder that permits/allow you to reserve space for content but I've not checked into this and I'm using vs .net 2003. While updating a small site of 10 or so pages this can be done by hand but how is a larger site done and how is new content data from the database added to specific pages?

I'm currently working on a small site for our startup business - getting content, developing structure - thus the questions so site can be updated w/minimum of fuss...

Thanks in advance for your comments/suggestions,


09-07-2006, 05:28 AM
Welcome to CodingForums, Rey. :D

I hope I understand correctly what you're asking. Larger sites are generally managed by content management system (CMS) software. I can't tell you an awful lot about them though, because I don't use them. Perhaps someone else can chip in with more information.

Regarding the addition/update of database information, that is most often done with forms on web pages and some sort of scripting language, such as PHP or ASP.NET. As for displaying that information back onto a page, the same scripting language would retrieve that information from the database and wrap the appropriate HTML tags around it for display.

09-07-2006, 09:44 AM
To get an idea of how a (simple) CMS would work, take a look at this tutorial: Content Management System (CMS) Using PHP And MySQL (http://www.php-mysql-tutorial.com/cms-php-mysql.php). It covers the basics about obtaining and storing information into a database, and retrieving and displaying it onto a web site.