public void idSelect()
{
SqlCommand com = new SqlCommand("select *from profil where id=@id", db.dbConnect());
db.dbConnect();
com.Parameters.Add("@id", SqlDbType.Int).Value = id;
SqlDataReader rd = com.ExecuteReader();
while (rd.Read())
{
textBox1.Text = rd["adi"].ToString();
textBox2.Text = rd["soyadi"].ToString();
textBox3.Text = rd["telefon"].ToString();
textBox4.Text = rd["mail"].ToString();
textBox5.Text = rd["adres"].ToString();
textBox6.Text = rd["tcno"].ToString();
textBox7.Text = rd["notlar"].ToString();
}
db.dbClose();
}