コード例 #1
0
        private void modificarAboutSinImg()
        {
            AboutBE    aboutBE    = new AboutBE();
            HomePageBL homePageBL = new HomePageBL();

            try
            {
                aboutBE.IdAbout     = Convert.ToInt32(txtId.Text);
                aboutBE.Titulo      = txtTitulo.Text;
                aboutBE.Descripcion = txtDesc.Text;


                homePageBL.updateAboutUsSinImg(aboutBE);
            }
            catch (Exception ex)
            {
                ClientScript.RegisterStartupScript(this.GetType(), "randomtext", "alertError('" + ex.Message + "')", true);
            }
            finally
            {
                ClientScript.RegisterStartupScript(this.GetType(), "randomtext", "alertUpdateSuccess('Se modifico con exito')", true);
                limpiarCamposAbout();
            }
        }