Click here to Skip to main content
13,050,614 members (82,433 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello everyone!

I just want to know how can I create a post-reply style in ASP.Net similar to Facebook moreover somewhat like CodeProject Discussions.
I want to know which controls to use for it. Also, how do I store them in the Database? i.e. in what style so that I can retrieve them on Pageload alongwith the username, date and time, also the question number.

Please give some hint / advice / clue. . . . . Don't want the in-detail explanation. Only some points.

Thanks in advance!!
Posted 12-Dec-11 18:23pm
Updated 13-Dec-11 19:35pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It can be done using Jquery
 <script type="text/javascript">
        $(function () {
            $("#Button6").click(function (evt) {

<asp:button id="Button6" runat="server" text="Add Comments" xmlns:asp="#unknown" />
<asp:panel id="Panel1" runat="server" height="120px" width="723px" cssclass="panel" xmlns:asp="#unknown">
        <br />
        <asp:textbox id="TextBox2" runat="server" height="57px" width="719px"></asp:textbox>
        <br />
        <br />
        <asp:button id="Button4" runat="server" text="Submit" height="25px">
            Width="95px" onClick="onsubmit" />
        <asp:button id="Button5" runat="server" height="25px" text="Cancel">
            Width="88px" />

take a datalist for show reply data.
after reply bind datalist again to make changes.(means in onsubmit button click.)
Tech Code Freak 14-Dec-11 3:11am
Thanks for the reply!
Please tell how to display/adjust the post and replies one below the other in a style similar to that in facebook.. i.e. like in CP Discussions page---One post>>then below it comes its reply which has an indent then another reply to this reply which also is indented. Like a staircase..
Or like in this page--reply-comment format display style.
Currently used DataList but getting all posts/comments as a list with no Post-Comment style.
Please guide regarding the controls to use and how to go for it.
I have made my DB table which has columns Id,UserId,PostHeader,PostBody,PostDate,ReferencePost(allow nulls--if null then post else comment--if foreign key to same table's Id column).
Uma Shankar Patel 15-Dec-11 23:54pm
see article as
Tech Code Freak 17-Dec-11 6:10am
Not pretty helpful for me.
Don't know how to run ASP.
Should I use a DataList within a Repeater?
If yes, how to code the DataList inside the Repeater?
If no, then what the heck should I do???

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 27 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100