예제 #1
0
 protected void uiButtonUpdate_Click(object sender, EventArgs e)
 {
     GeneralSettings GS = new GeneralSettings();
     GS.LoadByPrimaryKey(2);
     GS.Value = uiTextBoxBrief.Text;
     GS.Save();
     uiLabelSucc.Visible = true;
 }
예제 #2
0
 protected void uiLinkButtonUpdateSettings_Click(object sender, EventArgs e)
 {
     GeneralSettings GS = new GeneralSettings();
     GS.LoadByPrimaryKey(1);
     GS.Value = uiTextBoxNewsNo.Text;
     GS.Save();
     uiPanelCurrentNews.Visible = true;
     uiPanelCurrent.Visible = false;
     uiPanelEditSettings.Visible = false;
     uiTextBoxNewsNo.Text = "";
 }