EPiServer - Create an empty page to use when you only want to use it to store some data

Post date: Jan 17, 2010 9:35:10 PM

using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using EPiServer;using EPiServer.Core;using EPiServer.DataAbstraction;using EPiServer.Web.WebControls;using System.Text;namespace EPiServer.Templates.Public.Pages { public partial class EmptyPage : EPiServer.TemplatePage { protected void Page_Load(object sender, EventArgs e) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < CurrentPage.Property.Count; i++) { if(CurrentPage.Property[i].IsPropertyData) sb.Append(string.Format("{0} - Value: {1} <br />", CurrentPage.Property[i].Name, CurrentPage.Property[i].Value)); } ThisPageProperties.Text = sb.ToString(); } }}