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 :'(

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.

thx brother my problem is solved :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.