CAESDO.Recruitment.Web.Authorized_EmailTemplates.lviewApplications_DataBound C# (CSharp) Method

lviewApplications_DataBound() protected method

After databound, find out if we should show the send emails button
protected lviewApplications_DataBound ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void lviewApplications_DataBound(object sender, EventArgs e)
        {
            bool applicationsExist = lviewApplications.Items.Count > 0;

            pnlApplicationsExist.Visible = applicationsExist;

            if (applicationsExist)
            {
                txtBccAddress.Text = PositionBLL.GetByID(int.Parse(dlistApplicants.SelectedValue)).HREmail;
            }
        }