protected void BtnAdd_Click(object sender, EventArgs e) { try { //判断session if (Session["User"] == null || Session["User"].ToString().Length < 1) { Response.Redirect(Request.RawUrl); } DBLL.OptionSysDBLL option = new DBLL.OptionSysDBLL(); option.UpdateOptionValue("cn", "SystemSetting", "Culture", CKEditorControl1.Text); option.UpdateOptionValue("en", "SystemSetting", "Culture", CKEditorControl2.Text); ShowMsg1.InnerContent = "更新成功!"; ShowMsg1.Show(); } catch (Exception) { throw; } }
protected void Button1_Click(object sender, EventArgs e) { DBLL.OptionSysDBLL option = new DBLL.OptionSysDBLL(); option.UpdateOptionValue("en", "SystemSetting", "ProductCateTemplate", CKEditorControle.Text); option.UpdateOptionValue("cn", "SystemSetting", "ProductCateTemplate", CKEditorControlc.Text); }