So I have a master page which has the following function
'# Get and/or Set the Page ID
Public Property GetPageId() As String
Get
Return pgId
End Get
Set(ByVal value As String)
pgId = value
End Set
End Property
In my template then i.e Default.aspx who references the master page as follows
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/LoggedIn.Master" CodeBehind="Content.aspx.vb" Inherits="udpharmalecheile.WebForm2" %>
How can I call this masterpage function ?
What you actually want is the
MasterTypeattribute.See here: http://msdn.microsoft.com/en-us/library/xxwa0ff0(v=VS.85).aspx