Listing 8-10 and 8-11 purport to show how a public property set on the master page using inline server-side code is accesible from the content page. However when I implement this code in my masterpage and content page like so;
Dim m_sPageHeadingTitle As String = "HIFLD Web Site"
Public Property PageHeadingTitle() As String
Set(ByVal value As String)
m_sPageHeadingTitle = value
an on the content page;
<%@ Page Language="VB
" MasterPageFile="~/HIFLDMaster.master" Title="HSIP Gold Request Form" %>
<%@ MasterType VirtualPath="~/HIFLDMaster.master" %>
<script runat="server" language="vb
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Me.Master.PageHeadingTitle = "HSIP Gold Request Form"
I get an error on the content page stating 'PageHeadingTitle' is not a member of 'System.Web.UI.MasterPage'. Were there changes made to ASP.Net 2.0 Master pages after the book was written that keeps this code from working?