コード例 #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
ファイル: About.ascx.cs プロジェクト: menasbeshay/ivalley-svn
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GeneralSettings GS = new GeneralSettings();
         GS.LoadByPrimaryKey(2);
         uiLiteralContent.Text = GS.Value;
     }
 }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GeneralSettings GS = new GeneralSettings();
         GS.LoadByPrimaryKey(2);
         uiTextBoxBrief.Text = GS.Value;
         uiLabelSucc.Visible = false;
     }
 }
コード例 #4
0
        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();
            }
        }
コード例 #5
0
 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;
 }