protected void Page_Load(object sender, EventArgs e) { #region Tab Pages //if (!NewMode) // ShowDetails(); //else //{ // RadMultiPage1.SelectedIndex = 0; // tsUserADSs.Tabs[0].Selected = true; //} #endregion BOLClass = new BOLUserADSs(); 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) { //if (!Page.IsPostBack) //{ // BOLProducts ProductsBOL = new BOLProducts(); // IQueryable<vRandProducts> ProductList = ProductsBOL.GetRandProduct(); // if (ProductList.Count() == 0) // this.Visible = false; // foreach (var CurProduct in ProductList) // { // hplTitle.Text = CurProduct.Title; // hplTitle.NavigateUrl = "~/Shop/ShowProduct.aspx?Code=" + CurProduct.Code; // lblPrice.Text = Tools.ChangeEnc(Tools.FormatCurrency(CurProduct.Price.ToString())); // hplPicFile.ImageUrl = "~/Files/Products/" + CurProduct.PicFile; // hplPicFile.NavigateUrl = "~/Shop/ShowProduct.aspx?Code=" + CurProduct.Code; // } //} try { BOLUserADSs UserADSsBOL = new BOLUserADSs(); rptTextAds.DataSource = UserADSsBOL.GetRandAds(5); rptTextAds.DataBind(); } catch { } }
protected void Page_Load(object sender, EventArgs e) { try{ BOLUserADSs UserADSsBOL = new BOLUserADSs(); rptTextAds.DataSource = UserADSsBOL.GetRandAds(12); rptTextAds.DataBind(); } catch (Exception err) { BOLErrorLogs ErrorLogsBOL = new BOLErrorLogs(); ErrorLogsBOL.Insert(err.Message, DateTime.Now, Request.Url.AbsolutePath, "UCTextAds::Load"); } }