Ok I have a blank project with a default page and a master page, and a Base page class in App_Data

Default.aspx has it's master page set, and inherits BasePage

If I add the following code into Default.aspx:
Code:
Dim obj As MasterPage = MyBase.Master

obj.AddMenuItem("Testing")
then this works.
If i add the above code into the basepage then it puts a squiggle under AddMenuItem as instead of declaring obj as my MasterPage (which is poorly named as MasterPage) it declares it as Web.UI.Msterpage.

Any ideas how I ref my masterpage from the basepage code?

woof