Hi,
I've followed this link http://forums.asp.net/p/980694/1266579.aspx#1266579 while trying to access my master page public properties.
My master page is located on the web site root. I'm using a web site solution (not a web app).
I've created a class driven from System.Web.UI.Page on the App_Code folder:
Imports Microsoft.VisualBasic
Public Class myPage
Inherits System.Web.UI.Page
Public Shadows ReadOnly Property Master() As myMaster
Get
Return CType(MyBase.Master, myMaster)
End Get
End Property
End Class
I'm getting an error "type 'myMaster' is not defined" (I get the same error if I try to use ASP. myMaster)
I guess that if I'll place the master page on the App_Code folder every thing will be fine, but I don't like this approach.
Is there's a way around?
Thanks
Z.