I am trying to create a custom item/page template for my web project in VISUAL STUDIO 2005. I am using the following article as a basis:
The problem I am getting is that the Marker I am setting in the inherits property of the aspx file and the class name in the aspx.cs file are not being substituted with the file name that I designate when I use the template to add a new web page to my project.
The marker is setup as follows:
<%@ Page Language="C#" MasterPageFile="~/MasterPa
r" AutoEventWireup="true" CodeFile="default_template
.aspx.cs" Inherits="$pagename$" Title="Untitled Page" %>
public partial class $pagename$ : CustomBasePage
When I create my new web page using the template, the "$pagename$" remains meaning I have to manually edit it rather than it substituting automatically when the page is created.
Anyone know why this might be happening?