コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         NoticeDatalistListInsert.DataSource = d_notice.GetAllByTime();
         NoticeDatalistListInsert.DataBind();
     }
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         NoticeDatalistListUpdate.DataSource = info.GetAllByTime();
         NoticeDatalistListUpdate.DataBind();
     }
 }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Model.Notice now_info = new Model.Notice();
        if (!IsPostBack)
        {
            //content = "ada";
            NoticeDatalistList.DataSource = info.GetAllByTime();
            NoticeDatalistList.DataBind();

            now_info          = info.Getnewtime();
            TitleLbl.Text     = now_info.Title;
            TimeLbl.Text      = now_info.Time.ToString();
            AuthorLbl.Text    = now_info.Author;
            infoBox.InnerHtml = now_info.Info;
        }
    }