Li̇stbox’a database’den veri̇ çekme

protected void ListeDoldur()
{ 

SqlDataAdapter da = new SqlDataAdapter ("select * from Ziyaretci", con);

DataSet ds = new DataSet();

da.Fill(ds, "Ziyaretci");

ListBox1.DataSource = ds.Tables[0];

ListBox1.DataTextField = ds.Tables[0].Columns[1].ToString();

ListBox1.DataValueField = ds.Tables[0].Columns[0].ToString();

DataBind();

}