Example #1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            AdminEmail.UpdateCounselingStatus(_counselingID, cbProcessed.Checked);

            _counselingID = int.Parse(hdlCounselingID.Value);
            counseling    = AdminEmail.GetCounseling(_counselingID);
            BindData();
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Master.SetSectionName("Email Counselings");
            Master.SetSubSectionName("Counseling Details");

            if (Request.QueryString["CounselingID"] != null)
            {
                int.TryParse(Request.QueryString["CounselingID"].ToString(), out _counselingID);
            }

            if (!IsPostBack)
            {
                if (_counselingID > 0)
                {
                    counseling = AdminEmail.GetCounseling(_counselingID);

                    BindData();
                }
            }
        }