private void cargarDatalist(int ID) { pnlMyBooks.Visible = false; pnlNoBooks.Visible = false; DataTable dt = new DataTable(); dt = DAOLibros.ConsultarMisLibrosToEdit(ID); if (dt.Rows.Count > 0) { pnlMyBooks.Visible = true; pnlNoBooks.Visible = false; dtlBooks.DataSource = dt; dtlBooks.DataBind(); } else { pnlMyBooks.Visible = false; pnlNoBooks.Visible = true; } }