user292258
user292258

Reputation: 23

making a comment page

i want to make a comment page but i don't know where to start or how to do this. The member of my page must make a comment about videos, articles etc. all help appreciated.

Upvotes: 0

Views: 435

Answers (3)

Gan
Gan

Reputation: 4947

@Thrillercd, your question is quite a general one. I would suggest you to look into some books / tutorials on how to do this. You can get more helpful resources at www.asp.net. There is one open source application called BlogEngine that I think can help you, since your site sounds like blog/community site (Link: http://www.microsoft.com/web/gallery/BlogEngine.NET.aspx). Download it, study it, and you will have some basic understanding on how to build your site :)

Upvotes: 0

ocodo
ocodo

Reputation: 30248

I'm assuming some knowledge of SQL Server and ASP.Net here, so please let us know the level of help required.

At a basic level you would need to create a table that has the required fields for a comment.

For example

  • commentId - primary key
  • memberId - foreign key to the member table
  • postId - foreign key to your posts (or videos etc)
  • creation_date
  • modified_date
  • comment - the text of the comment.

Your comment system should implement a Captcha - e.g. http://www.infragistics.com/dotnet/netadvantage/aspnetnewfeatures.aspx

If you would allow non-members to comment, add fields for email etc.

Then when you render your post / video pages, you'd also render comments which match the postId. Member name would be linked from your members table via memberId.

Of course, you will need to look after security, optimization, caching etc.

Upvotes: 1

Paul Hadfield
Paul Hadfield

Reputation: 6136

You need to examine your system usage / requirements carefully. If it is an internal only site then your worries about Spam, etc. are less important. However if it is public facing, do you users need to register to leave a comment, etc. Spam becomes a real problem. You then need to look into cross-site scripting attacks, etc.

It is a really good idea to tackle the security / spam issues from the outset. Then other questions you need to think about are what is your data store, where will you bee saving the comments. Whilst there is no excuse for poor design, only finally, or even after going live, look at what caching could be used to improve performance. To start with performance may be good enough, but over time you may need to profile your site to see any slow points, etc.

Upvotes: 2

Related Questions