Synopsis
You need to create a custom-built page to upload to your storefront, but want it to use the storefront skin
Procedure
1. Create an aspx page with a codebehind aspx.cs or aspx.vb page to match your current codebase (i.e. customPage.aspx and customPage.aspx.cs or customPage.aspx.vb)
2. Make sure the CodeFile attribute in the .aspx page is set to the name of your codebehind file and that the Inherits attribute in the .aspx page is set to AspDotNetStorefront.[ClassName]
3. Make sure the .aspx page has the runat="server" attribute in the head tag.
4. Make sure the codebehind file's class inherits from the SkinBase class
5. Add your content directly within the <body></body> tags or use the asp controls (i.e. asp:Label) to that you can control the information via the codebehind file, and even pull from the database if necessary.
More Information
customPage.aspx
<%@ Page language="c#" Inherits="AspDotNetStorefront.customPage" CodeFile="customPage.aspx.cs" %>
<html>
<head runat="server">
</head>
<body runat = "server" >
The information that you code in here will be shown in the content section of the skin that you are using.<br />
You can use <strong>html</strong> within this section.<br />
<asp:Label ID="customlbl" runat="server" />
</body>
</html>
customPage.aspx.cs
// ------------------------------------------------------------------------------------------
// Copyright AspDotNetStorefront.com, 1995-2008. All Rights Reserved.
// http://www.aspdotnetstorefront.com
// For details on this license please visit the product homepage at the URL above.
// THE ABOVE NOTICE MUST REMAIN INTACT.
// ------------------------------------------------------------------------------------------
using System;
using System.Text.RegularExpressions;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Globalization;
namespace AspDotNetStorefront
{
public partial class customPage : SkinBase
{
protected void Page_Load(object sender, System.EventArgs e)
{
customlbl.Text = "You can also use asp controls on the page which can be accessed in the code behind file";
}
}
}