How to store article content [Resolved]

Posted by Ashoknalam under ASP.NET on 8/8/2011 | Points: 10 | Views : 1057 | Status : [Member] | Replies : 2
Hi,

Basically i have requirement to build a CMS kind of site.
if user submits a article what is the best way to store the article. whether it is xml or database.
the article will contain rich text formatting like content,images,highlighting source code.
sample article looks like http://www.dotnetfunda.com/articles/article1498-how-to-work-with-or-create-master-pages-in-aspnet-.aspx . Take this article as example which has images,content, source code highlighting and rich text formats. so how to store this kind of content to our website.
please guide me best way of how to store.

Thanks
Ashok

Ashok Nalam


Responses

Posted by: SheoNarayan on: 8/8/2011 [Administrator] HonoraryPlatinum | Points: 50

Up
0
Down

Resolved
You can store into the database. The database field type can be varchar(max) or text in SQL Server database.

Generally you do not store the images into the database, you save it on the server and just let user refer the images from the server to your article. When you save the entire html content of the article the image path also get saved and images are displayed when browsed.

Hope this will help.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Ashoknalam, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ashoknalam on: 8/8/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks sheo.

Ashok Nalam

Ashoknalam, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response