예제 #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            AboutBOL obj = CreateAboutObject();
            //--
            var result = AboutsDAL.InsertOrUpdate(obj);

            if (result.Code < 0)
            {
                lbError.InnerText = result.ErrorMessage;
                lbError.Visible   = true;

                return;
            }

            lbError.Visible = false;
        }
예제 #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            AboutBOL obj = CreateAboutObject();

            if (!string.IsNullOrEmpty(obj.ImageLink))
            {
                imgImage.ImageUrl = "~/" + Path.Combine(Utilities.GetDirectory("ImagesDir"), obj.ImageLink);
            }
            //--
            var result = AboutsDAL.InsertOrUpdate(obj);

            if (result.Code < 0)
            {
                lbError.InnerText = result.ErrorMessage;
                lbError.Visible   = true;

                return;
            }

            lbError.Visible = false;
        }