using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataHolder.Containers;
using DataHolder.DataPersistence.DBAProvider;
using DBWebControls.WebNavigator;
namespace DBWebControls.Controls{
/// <summary>
/// Summary description for GenericUserControl.
/// </summary>
public class GenericUserControl : UserControl
{
protected WebNavigator.PageNavigator Navigator;
protected NavUserControlState ControlData;
#region PageOverrides
protected override void OnLoad(EventArgs e)
{
Navigator = WebNavigator.PageNavigator.GetNavigator(this.Page);
//because on web another web type is created
ControlData = ((WebNavigator.NavBasePageState)Navigator[this.Page.GetType().BaseType]).GetUserControl(this.ID);
base.OnLoad (e);
}
#endregion
}
}
|