D:\NorthwindForWeb\Northwind\CS\DotNet\ADO.Net\Northwind\WebControls\Page.cs
/*
* This file was generated by ProCG version 2.0
*
* File name: Northwind\WebControls\Page.cs
* Language: C# - ADO.Net
* Database: My Sql
*
* Copyright (c) 2002-2019 iGenXSoft.
* For more information visit http://www.igenxsoft.com
*/
//ProCG Section 1_0_Using - Please do not edit this section, it will be overridden by ProCG next time code is generated; you may add code between sections.
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Northwind.General;
using Northwind.Data;
//End ProCG Section 1_0_Using
namespace Northwind.WebControls
{
/// <summary>
/// Summary description for NorthwindPage.
/// </summary>
public class NorthwindPage : NorthwindPageBase
{
//ProCG Section 3_0_Body - Please do not edit this section, it will be overridden by ProCG next time code is generated; you may add code between sections.
public NorthwindPage() : base()
{
}
//End ProCG Section 3_0_Body
public virtual void OnAfterCreateGridColumns(NorthwindGrid grid)
{
}
public virtual void OnBeforeRecreateGrid(NorthwindGrid grid)
{
}
public override void KeepOldStateIncaseRedirectWasCancel()
{
base.KeepOldStateIncaseRedirectWasCancel();
// Add any logic for your application
//int activeMainMenuId = SessionManager.ActiveMainMenuId;
//int activeSubMenuId = SessionManager.ActiveSubMenuId;
//ViewState["OldMainMenuId"] = activeMainMenuId;
//ViewState["OldSubMenuId"] = activeSubMenuId;
}
public override void RedirectWasCanceled()
{
base.RedirectWasCanceled();
// Add any logic for your application
//int oldMainMenuId = (int)ViewState["OldMainMenuId"];
//int oldSubMenuId = (int)ViewState["OldSubMenuId"];
//SessionManager.ActiveMainMenuId = oldMainMenuId;
//SessionManager.ActiveSubMenuId = oldSubMenuId;
//UserControl MainMenuControl = (UserControl)EspWebEnv.FindControlRecursive(this.Page, "MainMenu");
//MainMenuControl.DataBind();
//UserControl subMenuControl = (UserControl)EspWebEnv.FindControlRecursive(this.Page, "SubMenu");
//CSubMenuCollection subMenuCollection = DataManager.GetSubMenusByMainMenuIdCollection((short)SessionManager.ActiveMainMenuId);
//CollectionDataSourceWCC subMenusDataSource = (CollectionDataSourceWCC)EspWebEnv.FindControlRecursive(this.Page, "SubMenusDataSource");
//this.Page.Session[subMenusDataSource.DataCollectionInstanceName] = subMenuCollection;
//if (subMenusDataSource.NumRows > 0)
// subMenuControl.Visible = true;
//subMenuControl.DataBind();
}
//ProCG Section 999_0_EndOfClass - Please do not edit this section, it will be overridden by ProCG next time code is generated; you may add code between sections.
}
}
//End ProCG Section 999_0_EndOfClass
// 3063 ProCG uses this line - don't edit it