protected override void OnInit(EventArgs e) { InitializeComponent(); pnlMenu.Controls.Add(new LiteralControl("<h2>What-If: Products</h2>")); base.OnInit(e); if (!IsWhatifMode()) { string whatifPart = "whatif_"; Response.Redirect(PAGENAME.Substring(whatifPart.Length)); } helperProduct.SetMenuContainer(pnlMenu); helperProduct.OnInit(e); string dataFile = GetDirectory() + userDir + MAIN_USER_DATABASE; tableSync = new TableSyncProduct(userDir); //srcProductsList.DataFile = dataFile; }
protected override void OnInit(EventArgs e) { InitializeComponent(); //pnlMenu.Controls.Add(new LiteralControl("<h2>Products</h2>")); base.OnInit(e); if (IsWhatifMode()) { Response.Redirect("whatif_" + PAGENAME); } helperProduct.OnInit(e); string dataFile = GetDirectory() + userDir + MAIN_USER_DATABASE; tableSync = new TableSyncProduct(userDir); //srcProductsList.DataFile = dataFile; }