User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 401,592 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,730 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 390 | Replies: 4
Reply
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Write comments

  #1  
May 5th, 2008
Hi,
I want to add comments in mysite.That means in my site i have the photos,user will leave the comment for that photos and also I want to reject some comments.How to create comments..Now i am using database to store the comments like their msg and name posted timings.But i dont know how to display all comments below of that photo.Is there any other way to add comment?How to display all comments?How to reject some comments?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Write comments

  #2  
May 5th, 2008
In your database, create a photoID column to identify to which photo the comment belongs.
--
"Dummy."
Reply With Quote  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: Write comments

  #3  
May 6th, 2008
k.I dont know How to display details from database.If i have 4 or 5 comments,how to display all comments..
Reply With Quote  
Join Date: Jan 2008
Posts: 13
Reputation: raj416 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
raj416 raj416 is offline Offline
Newbie Poster

Re: Write comments

  #4  
May 7th, 2008
create a table like comment id, commentname,photo id

for each comments u can save a photo id.
for a single photo u can add multiple comments..
i hope ,
this will solve ur issue or else let me know
Reply With Quote  
Join Date: Dec 2007
Posts: 84
Reputation: nandhinijp is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
nandhinijp nandhinijp is offline Offline
Junior Poster in Training

Re: Write comments

  #5  
May 7th, 2008
S.I got.Now i am using datalist to display all comments.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC