title: How to retrieve DataTable value to <div> in ASP.NET
body: <p>I am new to ASP.NET, I am making a search box in my application.</p>
  
  <p>For example: if a user enters "abc" in the textbox, then the textbox will fetch data from the database which starts with "abc".  I am passing this data to <code>DataTable</code>.</p>
  
  <p>It works properly,</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>DataTable result = new DataTable();`
  
  protected void TextBox1_TextChanged(object sender, EventArgs e)
  {
      connString = System.Configuration.ConfigurationManager.ConnectionStrings["MyConsString"].ConnectionString;
      SqlConnection conn = new SqlConnection(connString);
      conn.Open();
  
      string query = string.Format("SELECT DISTINCT Scrip FROM dbo.SearchBoxData where Scrip Like '{0}%'", TextBox1.Text);
  
      SqlCommand cmd = new SqlCommand(query, conn);
  
      result.Load(cmd.ExecuteReader());
  
      conn.Close();
  }
  </code></pre>
  
  <p>Now I want to retrieve all this data in my <code>&lt;div&gt;</code> tag.  How should I retrieve and display?</p>
  
  <p>Any help will be appreciated.</p>