hi all

i want your help plz

am working on a news website

and i want a way or code to let the visitors add comments on any news

am using asp.net with c#

plz help :'(

5 Years
Discussion Span
Last Post by amm038

This is simple coding, if your news are populated from database, then each news should have uniqe ID (primary key) in table. Make one more table in databse "Comments". Add columns like comment id, Name, email, comments etc (whatever you wanna ask from user). Add news id (as foriegn key) in your comments table.
Make a form in your asp.net web application e.g. textboxes for name, email and comments where you are showing news. When you will load news from database, you will have news id. If user will add comments, save his/her comments and with news id as foriegn key.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.