protected void Page_Load(object sender, EventArgs e) { BOLGalleries BOLGalleries = new BOLGalleries(); rptGalleries.DataSource = BOLGalleries.GetGalleries(5); rptGalleries.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { #region Tab Pages //if (!NewMode) // ShowDetails(); //else //{ // RadMultiPage1.SelectedIndex = 0; // tsGalleries.Tabs[0].Selected = true; //} #endregion BOLClass = new BOLGalleries(); if ((Code == null) && (!NewMode)) { return; } if (!Page.IsPostBack) { //if (!NewMode) ShowDetails(); #region Fill Combo //cboHCGalleryCatCode.DataSource = new BOLHardCode().GetHCDataTable("HCGalleryCats"); //cboHCMediaTypeCode.DataSource = new BOLHardCode().GetHCDataTable("HCMediaTypes"); #endregion if (!NewMode) { LoadData((int)Code); } } }
protected void Page_Load(object sender, EventArgs e) { #region Tab Pages //if (!NewMode) // ShowDetails(); //else //{ // RadMultiPage1.SelectedIndex = 0; // tsGalleries.Tabs[0].Selected = true; //} #endregion BOLClass = new BOLGalleries(); lblSysName.Text = BOLClass.PageLable; if ((Code == null) && (!NewMode)) { return; } if (!Page.IsPostBack) { //if (!NewMode) ShowDetails(); #region Fill Combo #endregion if (!NewMode) { LoadData((int)Code); } } }
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) { BOLGalleries GalleriesBOL = new BOLGalleries(); rptGalleries.DataSource = GalleriesBOL.GetGalleries(PageNo, PageSize); rptGalleries.DataBind(); int ResultCount = GalleriesBOL.GetGalleriesCount(); 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) { string strCode = Request["Code"]; int Code; Int32.TryParse(strCode, out Code); if (Code != 0) { BOLGalleries BOLGalleries = new BOLGalleries(); AceNews.Old_Code.DAL.Galleries CurGallery = BOLGalleries.GetDetails(Code); MediaFile = CurGallery.MediaFile; lblTitle.Text = CurGallery.Title; } }