title: How to use ListView in Asp.net WebForm
body: <p>I have this code and i can only display it in a textbox</p>
  
  <pre><code>&lt;script runat="server"&gt;
  protected void Page_Load(object sender, EventArgs e)
  {
  
      string connect =  ConfigurationManager.ConnectionStrings["TDBSConnectionString"].ConnectionString;
  
      string query = "SELECT news, news_date FROM [IBSI].[dbo].[ibsi.news]";
  
      if (query != null)
      {
          using (SqlConnection conn = new SqlConnection(connect))
          {
               using (SqlCommand cmd = new SqlCommand(query, conn))
               {
  
                conn.Open();
                SqlDataReader rdr = cmd.ExecuteReader();
                if (rdr.HasRows)
                {
                     while (rdr.Read())
                     {
                        Textbox1.Text=rdr["news"].ToString();
                     }
                }
           }
      }
  }
  else 
  {
        Response.Write("&lt;p&gt;No customer selected&lt;/p&gt;"); 
  }
  
  }
  &lt;/script
  </code></pre>
  
  <p>and i only display it here</p>
  
  <pre><code>&lt;asp:TextBox ID="TextBox1" runat="server" Height="168px" TextMode="MultiLine" 
                          Width="303px"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>But in my database i have more than 1 data so i need a listview to display this items.
  Please help me on how to do that.</p>