Hi all,
I have several pages that all use the same masterpage. Every time that I change the markup code and rebuild, I get a failure message and two errors. Both are: "Type 'Masterpagename.Masterpagename' is not defined.". To rectify this, I have to manually edit the designer file and add the namespace "Global" to the declaration of the masterpage.
Below is the generated code:
Public Shadows ReadOnly Property Master() As Masterpagename.Masterpagename
Get
Return CType(MyBase.Master, Masterpagename.Masterpagename)
End Get
End Property
This is how it is once I have changed it:
Public Shadows ReadOnly Property Master() As Global.MasterpageName.MasterpageName
Get
Return CType(MyBase.Master, Global.MasterpageName.MasterpageName)
End Get
End Property
Does anyone have any idea how I can rectify this?
Many thanks,
Simon