Exemple #1
0
        private void StartLoadContactDetail(int id)
        {
            try
            {
                var result = ContactsDAL.Get(id);
                if (result.Code < 0)
                {
                    lbError.InnerText = result.ErrorMessage;
                    lbError.Visible   = true;

                    return;
                }

                lbError.Visible = false;
                //----
                ContactBOL BOL = new ContactBOL(result.Data.Tables[0].Rows[0]);
                lbHeader.InnerText = BOL.Subject_VN;
                ltrContent.Text    = BOL.Content_VN;
            }
            catch (Exception ex)
            {
                LogHelpers.WriteException("[ContactDetail][StartLoadContactDetail]", ex.ToString());
                lbError.InnerText = ex.Message;
                lbError.Visible   = true;
            }
        }