Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created a question answer forum section in a web site using asp.net, C# now I am able to insert question dispaly answer but not able to add comment on answer.
I am displaying answer using repeater control and also add link button in the repeater control when user click on link button it will dispaly a panel with textbox and button to insert coment in database now actual problem is how to display that coments on the particular answer in repeater control.


What I have tried:

i cant display comments of that particular answer using repeater in aps.net
Posted
Updated 30-Jul-20 23:54pm
Comments
[no name] 30-Jul-20 14:44pm    
Treat it as an "answer" but with a different "type" code and business rule.
ZurdoDev 30-Jul-20 15:37pm    
What is the problem?

1 solution

Use nested repeaters with the main repeater being the answers and each answer with comments has a nested repeater to show the comments. Google "c# nested asp:repeater" for examples of how this can work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900