protected void uiButtonUpdate_Click(object sender, EventArgs e) { GeneralSettings GS = new GeneralSettings(); GS.LoadByPrimaryKey(2); GS.Value = uiTextBoxBrief.Text; GS.Save(); uiLabelSucc.Visible = true; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GeneralSettings GS = new GeneralSettings(); GS.LoadByPrimaryKey(2); uiLiteralContent.Text = GS.Value; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GeneralSettings GS = new GeneralSettings(); GS.LoadByPrimaryKey(2); uiTextBoxBrief.Text = GS.Value; uiLabelSucc.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Ermia_BLL.NewsTicker NT = new Ermia_BLL.NewsTicker(); NT.Query.AddOrderBy(Ermia_BLL.News.ColumnNames.PostedDate, MyGeneration.dOOdads.WhereParameter.Dir.DESC); GeneralSettings GS = new GeneralSettings(); GS.LoadByPrimaryKey(1); int top = 0; try { if (int.TryParse(GS.Value, out top)) NT.Query.Top = top; } catch (Exception ee) { NT.Query.Top = 2; } NT.Query.Load(); uiRepeaterTicker.DataSource = NT.DefaultView; uiRepeaterTicker.DataBind(); } }
protected void uiLinkButtonSettings_Click(object sender, EventArgs e) { uiPanelCurrentNews.Visible = false; uiPanelCurrent.Visible = false; uiPanelEditSettings.Visible = true; GeneralSettings GS = new GeneralSettings(); GS.LoadByPrimaryKey(1); uiTextBoxNewsNo.Text = GS.Value; }