When I get to step 10 and press Ctrl+F5 I get the following build error.
Error 1 '_$safeitemnames$' is not a valid value for attribute 'inherits'. C:\BegASPNET\Site\MyBasePage.aspx 1
Here is the code for MyBasePage - it looks to be the sames as that in the download.
Note: The "_$safeitemnames$" in the code behind has a red underline with the error message: "The type or namespace 'safeitemnames' could not be found."
Any clues?
Thanks
Ken
Code:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="true" CodeFile="MyBasePage.aspx.cs" Inherits="_$safeitemnames$" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
</asp:Content>
and the code behind
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _$safeitemnames$: BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
the complete error list
Code:
Error 1 '_$safeitemnames$' is not a valid value for attribute 'inherits'. C:\BegASPNET\Site\MyBasePage.aspx 1
Error 5 { expected C:\BegASPNET\Site\MyBasePage.aspx.cs 8 23 C:\BegASPNET\Site\
Error 4 Invalid token '$' in class, struct, or interface member declaration C:\BegASPNET\Site\MyBasePage.aspx.cs 8 23 C:\BegASPNET\Site\
Error 6 Invalid token '$' in class, struct, or interface member declaration C:\BegASPNET\Site\MyBasePage.aspx.cs 8 37 C:\BegASPNET\Site\
Error 7 Invalid token '{' in class, struct, or interface member declaration C:\BegASPNET\Site\MyBasePage.aspx.cs 9 1 C:\BegASPNET\Site\
Error 8 The type or namespace name 'safeitemnames' could not be found (are you missing a using directive or an assembly reference?) C:\BegASPNET\Site\MyBasePage.aspx.cs 8 24 C:\BegASPNET\Site\
Error 2 Unexpected character '$' C:\BegASPNET\Site\MyBasePage.aspx.cs 8 23 C:\BegASPNET\Site\
Error 3 Unexpected character '$' C:\BegASPNET\Site\MyBasePage.aspx.cs 8 37 C:\BegASPNET\Site\