Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
4.50/5 (4 votes)
I have heard that codeproject is a database driven site. But I have noticed that when I post some question to codeproject, the link of that post is not like a database driven page (like asp?....) but it is like a static page.
For example, If I post a question "How to manage html"
the Link of the page will be such like
http://www.codeproject.com/Questions/180316/How-to-manage-html-.aspx

It means this page has been stored in Questions/180316 directory with the name How-to-manage-html-.aspx.
My question is

1. is codeproject is a database driven site?
2. If codeproject is a database driven site then why its pages are like static pages?
3. If codeproject is a not a database driven site then How it manage all the site (Insertion, deletion, Updation etc)?
has some one the answers of my questions?
Posted

>>
It means this page has been stored in Questions/180316 directory with the name How-to-manage-html-.aspx.
<<


No, it does not mean there is a physical file folder with that path. The URL is specially handled, that's all. Most web servers / server side technologies have this feature where you can have custom handlers for a URL. So instead of somepage?someparam=100, you'd have somepage/100 and it will work the same.

>>
1. is codeproject is a database driven site?
<<


Well it does use a database where all the articles, posts and other content get stored. So you could say it's database driven I guess.

>>
2. If codeproject is a database driven site then why its pages are like static pages?
<<


They are not static pages. You just were not aware of URL handling capabilities that web/application servers offer these days.

>>
3. If codeproject is a not a database driven site then How it manage all the site (Insertion, deletion, Updation etc)? has some one the answers of my questions?
<<


It's a database based site, so that's where it stores all the data - in the database.
 
Share this answer
 
v2
Comments
rashidfarooq 12-Apr-11 9:39am    
Thanks for giving me brief answer.
Sergey Alexandrovich Kryukov 12-Apr-11 14:23pm    
Well, this is mature explanation. Having just search would say just nothing about the data management approach.
--SA
Espen Harlinn 12-Apr-11 16:05pm    
Nice answer, 5ed!
1. is codeproject is a database driven site?

Yes.

2. If codeproject is a database driven site then why its pages are like static pages?

The question/votes/comments/solutions are all stored in the database. the page is built dynamically, and I bet they use URL rewriting so that it shows up like it does.

3. If codeproject is a not a database driven site then How it manage all the site (Insertion, deletion, Updation etc)?

N/A.


If you go to the Site Bugs and Suggestions[^] forum, and ask the question there, Chris may tell you how he does it.
 
Share this answer
 
Comments
rashidfarooq 12-Apr-11 9:40am    
thanks for answering.
Sergey Alexandrovich Kryukov 12-Apr-11 14:24pm    
This, too, a 5.
--SA
CodeProject is a hamsters driven site.
 
Share this answer
 
Comments
rashidfarooq 12-Apr-11 9:39am    
what is hamsters driven?
wizardzz 12-Apr-11 12:06pm    
Wow!
Sergey Alexandrovich Kryukov 12-Apr-11 14:21pm    
Sure, in both senses of this word. My 5.
--SA
Along with other fine answers.....here you go for the sample application

The Code Project Discussion boards[^]

JumpyForum: Inspired by Code Project Forum / Discussion / Message board[^]

I hope it will clear all of your doubts. Enjoy.
 
Share this answer
 
Comments
Espen Harlinn 12-Apr-11 16:07pm    
Very good links - shows how it's done, my 5 :)
Yes.You can retrieve what ever you are searching.

It is a very big Database.
 
Share this answer
 

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