I have a simple master page defined as such:
Public Class AppUIMasterPage
Inherits System.Web.UI.MasterPage
Then i have a base class for content pages:
Public MustInherit Class AppUIBase
Inherits System.Web.UI.Page
Then the master page tag:
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="my.master.vb" Inherits="AppUI.AppUIMasterPage" %>
On the content page:
Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/my.Master" CodeBehind="somecontentpage.aspx.vb" Inherits="AppUI.viewprocedure" %>
And content code-behind
Public Class viewprocedure
Inherits AppUIBase
The designer automatically inserts the following:
'''<summary>
'''Master property.
'''</summary>
'''<remarks>
'''Auto-generated property.
'''</remarks>
Public Shadows ReadOnly Property Master() As AppUI.AppUIMasterPage
Get
Return CType(MyBase.Master, AppUI.AppUIMasterPage)
End Get
End Property
When i try to build the complier throws an error and intellisense wants me to change AppUI.AppUIMasterPage to: Global.AppUI.AppUIMasterPage
I'm not exactly sure why it is doing this, and I would be OK if it was just a simple change, however every time i close and re-open the page VS changes it and before i build i have to change it back again.