Making a public property on a master page visible to a content page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ex glider pilot

    Making a public property on a master page visible to a content page

    Hi
    I have a public property on a master page:

    Public Sub SetTitle(ByVal TitleText As String)
    Me.lblMessage.T ext = TitleText
    End Sub

    the page def of the content page is:
    <%@ Page Language="VB" MasterPageFile= "~/MasterPage.mast er"
    AutoEventWireup ="false" CodeFile="EditN ewRequirement.a spx.vb"
    Inherits="Membe rsArea_EditNewR equirement" title="Untitled Page" %>

    <asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
    Runat="Server">
    </asp:Content>


    in vb

    auto complete me.master does not give SetTiltle as valid

    I have other pages where it seems to work fine, I created the page
    from scratch with wizard vs 2008 net 3.5

    any thought please?
  • clintonG

    #2
    Re: Making a public property on a master page visible to a content page

    Type the Master in all content pages...

    <%@ MasterType VirtualPath="~/MasterPage.mast er" %>


    "Ex glider pilot" <ian.pettman@av a.co.ukwrote in message
    news:b9c87203-b944-4326-bbb4-b27ca0758575@a7 0g2000hsh.googl egroups.com...
    Hi
    I have a public property on a master page:
    >
    Public Sub SetTitle(ByVal TitleText As String)
    Me.lblMessage.T ext = TitleText
    End Sub
    >
    the page def of the content page is:
    <%@ Page Language="VB" MasterPageFile= "~/MasterPage.mast er"
    AutoEventWireup ="false" CodeFile="EditN ewRequirement.a spx.vb"
    Inherits="Membe rsArea_EditNewR equirement" title="Untitled Page" %>
    >
    <asp:Content ID="Content1" ContentPlaceHol derID="ContentP laceHolder1"
    Runat="Server">
    </asp:Content>
    >
    >
    in vb
    >
    auto complete me.master does not give SetTiltle as valid
    >
    I have other pages where it seems to work fine, I created the page
    from scratch with wizard vs 2008 net 3.5
    >
    any thought please?

    Comment

    Working...