Пример #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            SystemParamType systemParamType = (SystemParamType)Enum.Parse(typeof(SystemParamType), Request.QueryString["type"].ToString());

            try
            {
                SystemParamService.Update(systemParamType, this.txtValue.Text.ToString(), CurrentUser.UserName);
                RegisterScript("alert('修改成功!'); window.location.href='SystemParameter.aspx';");
            } catch (Exception ex) {
                ShowExceptionMessage(ex, "修改");
            }
        }