/// ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
/// ' Microsoft Content Management Server - Sample Code 
/// '
/// ' This sample code is provided "AS IS" with no warranties, and confers no rights. 
/// ' You assume all risk for your use.  2001 Microsoft Corporation. All rights reserved.
/// '
/// ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

namespace WoodgroveNet.UserControls
{
	using System;
	using System.Web;
	using System.Resources;
	using Microsoft.ContentManagement.Web.Caching;

	/// <summary>
	///		Summary description for LeftNavigation.
	/// </summary>
	public abstract class LeftNavigation : System.Web.UI.UserControl
	{
		protected System.Web.UI.WebControls.Literal LTPoweredBy;
		protected McmsWebControlLibrary.McmsNavigationControl McmsLeftNavigationControl;

		//Resource Manager for localization
		protected ResourceManager LocalizationResourceManager;
		
		private void Page_Load(object sender, System.EventArgs e)
		{
			//This function implements the ValidationCallback mechanism
			CmsHttpCachePolicy.Current.AddValidationCallbackAllCmsContent();

			LTPoweredBy.Text = LocalizationResourceManager.GetString("PoweredBy");
			

		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
			LocalizationResourceManager = (ResourceManager) Application["WoodgroveNetResourceManager"];
		}
		
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}
