Example #1
0
 private void _showUpdate(int CareerId)
 {
     _panelControl(pnl_update);
     CareerClass objCareer = new CareerClass();
     dtl_update.DataSource = objCareer.getCareersByID(CareerId);
     dtl_update.DataBind();
 }
Example #2
0
        // Display message to show the insert successful or not
        private void _isInsertSuccess(bool flag)
        {
            if (flag)
            {
                SendEmailClass objSendEmail = new SendEmailClass();
                CareerClass objCareer = new CareerClass();

                //System.Net.Configuration.SmtpSection smtp = new System.Net.Configuration.SmtpSection();
                objSendEmail.SendMessage("*****@*****.**", objApplicant.email, "Northbay Career Application : " + objCareer.getCareerByID(objApplicant.careerid), objApplicant.emailbody());
                lbl_message.Text = "Your application has been successfully submitted";

            }
            else
            {
                lbl_message.Text = "Your application has NOT been submitted";
            }
        }
Example #3
0
 public string emailbody()
 {
     //create an instance of career class
     CareerClass objCareer = new CareerClass();
     return
         "Hi " + _fname + ", " +
         "<br/>" +
         "You have successfully applied to the " + objCareer.getCareerByID(_careerid) + " position on Northbay hospital web site. Best of luck with your candidacy!" +
         "<br/>" + "Thanks for using Northbay careers to help connect you with opportunities online." +
         "<br/>" + "Best regards," +
         "<br/>" + " The Human Resource Team" + "<br/>" + "<br/>" +
         "-----------------------------------------------------------------------------------------------------" +
         "<br/>Applicant Name: " + _fname + " " + _lname +
         "<br />Applicant address:" + _unitno + (",") + _streetno + (" ") + _streetname + (",") + _city + (",") + _province + (",") + _pcode +
         "<br/>Applicant telephone number:" + _tpnumber + "<br/>" +
         "-----------------------------------------------------------------------------------------------------";
 }