title: creating dynamic div tag and place the data in that div tag, the data which is fetched from the database
body: <p>I have created dynamic hyperlink and fetched data from database. now i need to put those data in particular div tag. Please help me.</p>
  
  <pre><code> &lt;div runat="server" id="bdy"&gt;
  
   &lt;/div&gt;
  
  Code Behind
  
     protected void Page_Load(object sender, EventArgs e)
     {
      MySqlCommand inscmd = new MySqlCommand("select * from category", con);
      MySqlDataAdapter a = new MySqlDataAdapter(inscmd);
      DataTable t = new DataTable();      
      foreach (DataRow row in t.Rows) 
      {
         bdy.InnerHtml.Equals("&lt;a href=\"category.aspx?refid=" + row["cid"] + "\"&gt;" + row["catname"] + "&lt;/a&gt;&lt;br /&gt;"); 
  
         // bdy is div name 
                   Response.Write("&lt;a href=\"category.aspx?refid="+row["cid"]+"\"&gt;"+row["catname"]+"&lt;/a&gt;&lt;br /&gt;");               
  
      }
  
    }
  </code></pre>