protected void btnBuscar_Click(object sender, EventArgs e) { if (lista.SelectedValue != null && txtFinal.Text != null && txtInicio.Text != null) { Bitacora.DataSource = negBitacora.ListarBitacora(Convert.ToInt32(lista.SelectedValue), txtInicio.Text, txtFinal.Text); Bitacora.DataBind(); } else { lblError.Text = "Debe ingresar una entidad"; lblError.Visible = true; } }