protected void Page_Load(object sender, EventArgs e) { BOLMayNotReads MayNotReadsBOL = new BOLMayNotReads(); rptMayNotReads.DataSource = MayNotReadsBOL.GetLatest(3); rptMayNotReads.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { string strPageNo = Request["PageNo"]; Int32.TryParse(strPageNo, out PageNo); if (PageNo == 0) { PageNo = 1; } if (!Page.IsPostBack) { BOLMayNotReads MayNotReadsBOL = new BOLMayNotReads(); rptItems.DataSource = MayNotReadsBOL.GetList(PageNo, PageSize); rptItems.DataBind(); int ResultCount = MayNotReadsBOL.GetListCount(); int PageCount = (int)ResultCount / PageSize; if (ResultCount % PageSize > 0) { PageCount++; } ConcatUrl += ""; pgrToolbar.PageNo = PageNo; pgrToolbar.PageCount = PageCount; pgrToolbar.ConcatUrl = ConcatUrl; pgrToolbar.PageBind(); } }
protected void Page_Load(object sender, EventArgs e) { #region Tab Pages //if (!NewMode) // ShowDetails(); //else //{ // RadMultiPage1.SelectedIndex = 0; // tsMayNotReads.Tabs[0].Selected = true; //} #endregion BOLClass = new BOLMayNotReads(); lblSysName.Text = BOLClass.PageLable; if ((Code == null) && (!NewMode)) { return; } if (!Page.IsPostBack) { //if (!NewMode) ShowDetails(); #region Fill Combo #endregion if (!NewMode) { LoadData((int)Code); } else { dteSubjectDate.SelectedDateChristian = DateTime.Now; } } }