protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { NoticeDatalistListInsert.DataSource = d_notice.GetAllByTime(); NoticeDatalistListInsert.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { NoticeDatalistListUpdate.DataSource = info.GetAllByTime(); NoticeDatalistListUpdate.DataBind(); } }
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; } }