protected void Page_Load(object sender, EventArgs e) { if (Session["Rights"].ToString() == "0") { divAdmin.Visible = false; } if (!Page.IsPostBack) { lblEmpCount.Text = objEmployee.EmpCount(); dlBirhtday.DataSource = objEmployee.Birthday(); dlBirhtday.DataBind(); if (dlBirhtday.Items.Count == 0) { lblMessage.Text = "Sem aniversariantes"; } } }