Example #1
0
        protected void btnDeleteEMail_Click(object sender, EventArgs e)
        {
            int iEMailID;

            if (int.TryParse(hidDeleteEMailID.Value, out iEMailID))
            {
                Classes.cEMail UpdateEMail = new Classes.cEMail(iEMailID, Master.UserName, Master.UserID);
                UpdateEMail.SaveUpdate(Master.UserID, true);
            }
        }
Example #2
0
        protected void btnSaveEMail_Click(object sender, EventArgs e)
        {
            int iEMailID;

            if (int.TryParse(hidEnterEMailID.Value, out iEMailID))
            {
                Classes.cEMail UpdateEMail = new Classes.cEMail(iEMailID, Master.UserName, Master.UserID);
                UpdateEMail.EMailID      = iEMailID;
                UpdateEMail.EmailAddress = tbEnterEMailAddress.Text;

                int iTemp;
                if (int.TryParse(ddlEnterEMailType.SelectedValue, out iTemp))
                {
                    UpdateEMail.EmailTypeID = iTemp;
                }
                UpdateEMail.IsPrimary = cbxEnterEMailPrimary.Checked;

                UpdateEMail.SaveUpdate(Master.UserID);
            }
        }