I am using asp.net to create a basic comment system , it goes like this:
-
i have two text-boxes for the username and the comment it self, the content of these text-boxes are inserted within a database.
-
retrieve the database content using a dataset to a grid-view.
… everything works great by my question is:
how do i allow replies to comments like in stackoverflow. like user A says “hi” then user B says “@A – hi”. how do i order them so that the reply is below the first comment?
hope everything makes sense, thanks
You need to link the comment to the questions.
Then just select from database using the question ID ordering by comment ID.