Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
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 19:23pm
Edited 13-Dec-11 20:35pm
v2

1 solution

Rate this: bad
good
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) {
               evt.preventDefault();
                $('#Panel1').slideToggle('slow');
              
          });
        });
                </script>
 
 
<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">
        
 
        <asp:textbox id="TextBox2" runat="server" height="57px" width="719px"></asp:textbox>
        
 
        
 
        <asp:button id="Button4" runat="server" text="Submit" height="25px">
            Width="95px" onClick="onsubmit" />
take a datalist for show reply data.
after reply bind datalist again to make changes.(means in onsubmit button click.)
  Permalink  
Comments
Tech Code Freak at 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 at 15-Dec-11 23:54pm
   
see article as
http://www.codeproject.com/KB/asp/codeproject-forum.aspx
Tech Code Freak at 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
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 DamithSL 165
4 Tomas Takac 144
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 27 Mar 2013
Copyright © CodeProject, 1999-2014
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