using System;
using System.Web;
//Add reference for localization
using System.EnterpriseServices;
using System.Globalization;
using System.Resources;
using System.Threading;
//Add reference for navigation tree control
using Microsoft.Web.UI.WebControls;
//Add reference to the CMS API
using Microsoft.ContentManagement.Publishing;
using Microsoft.ContentManagement.Publishing.Extensions.Placeholders;
using Microsoft.ContentManagement.Web.Caching;
//Add reference to the Mcms control library
using McmsWebControlLibrary;

namespace WoodgroveNet.Templates
{
	/// <summary>
	/// Summary description for Intranet_Product.
	/// </summary>
	public class PressRelease : System.Web.UI.Page
	{
		
		#region CMS Placeholders
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl HtmlPlaceholder1;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl Placeholderhtmlcontrol2;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl Placeholderhtmlcontrol3;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl Placeholderhtmlcontrol4;
		protected Microsoft.ContentManagement.WebControls.HtmlPlaceholderControl Placeholderhtmlcontrol5;				
		#endregion CMS Placeholders

		protected McmsWebControlLibrary.McmsBreadcrumbControl McmsbreadcrumbcontrolPressRelease;
		
		protected System.Web.UI.WebControls.Literal LTPressReleaseCurrentUser;
		protected System.Web.UI.WebControls.Literal LTPressReleaseUser;
		protected System.Web.UI.WebControls.Literal LTPressReleaseCurrUser;
								
		//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();

			//If you want to display the username on the browser, uncomment this piece of code.
			/*
			if (CmsHttpContext.Current.IsLoggedInAsGuest)
			{
				LTPressReleaseUser.Text = LocalizationResourceManager.GetString("Guest");						
			}
			else
			{								
				LTPressReleaseUser.Text = Server.HtmlEncode(CmsHttpContext.Current.User.ClientAccountName);		
			}
			LTPressReleaseCurrentUser.Text = LocalizationResourceManager.GetString("CurrentUser");
			*/
			
			//Code for Tracing Functionality
			string TracingSeperator = " :: ";
			// Write a line to the Listener
			System.Diagnostics.Trace.WriteLine(System.DateTime.Now + TracingSeperator + "Template" + TracingSeperator + "PressRelease" + TracingSeperator + "This is the Page Load for the PressRelease Template.");
			// Record your output
			System.Diagnostics.Trace.Flush();
			//End of Code for Tracing Functionality
		
	
		}
		#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"];
		}
		
		/// <summary>
		/// 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
	}
}
