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

E

Ex glider pilot

Hi
I have a public property on a master page:

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

the page def of the content page is:
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
AutoEventWireup="false" CodeFile="EditNewRequirement.aspx.vb"
Inherits="MembersArea_EditNewRequirement" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
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?
 
C

clintonG

Type the Master in all content pages...

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top