title: How to make a Comment reply System using asp.net.?
body: <p>I want to show a post on a div and under that a reply of that post and consecutively want to show another posts and replies...
  I did this much but that doesn't shows that desired output</p>
  
  <pre><code> using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Web;
      using System.Web.UI;
      using System.Web.UI.WebControls;
      using System.Data.SqlClient;
  
      public partial class Default3 : System.Web.UI.Page
      {
          int i = 0;
          SqlConnection con = new SqlConnection("server=LOD-PC;uid=sa;pwd=1234;database=db2");
          protected void Page_Load(object sender, EventArgs e)
          {
              con.Open();
              SqlCommand cmd = new SqlCommand("select * from t3 ORDER by id DESC", con);
              SqlDataReader dr = cmd.ExecuteReader();
              while (dr.Read())
              {
                  i++;
                  string name = dr["name"].ToString();
                  string image1 = dr["img"].ToString();
                  string image2 = image1.Substring(2).ToString();
                  string id = dr["id"].ToString();
                  string status = dr["status"].ToString();
                  string buttonid = i.ToString();
  
                  Response.Write("&lt;div id='myDiv' class='myDivClass'&gt; &lt;img src='" + image2 + "' style='width:50px; height:50px; float:left; margin-right:6px;' /&gt; &lt;br/&gt; &lt;br/&gt; &lt;span class='name'&gt; &lt;input id='texta' class='texta' type='text' value=" + name.ToString() + " /&gt; &lt;span/&gt; &lt;span class='id'&gt; &lt;input id='textb' class='textb' type='text' value=" + id.ToString() + " /&gt; &lt;span/&gt; &lt;div id='g'&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;span class='status'&gt; " + status + " &lt;/span&gt; &lt;span class='combutton'&gt; &lt;input id='"+buttonid+"'  class='button' type='button' value='Comment'/&gt; &lt;/span&gt; &lt;/div&gt; &lt;/div&gt;");
              }
              con.Close();
          }
      }
  </code></pre>