P
pmfphd
I have just started working with ASP.NET 3.5 and Visual Studio 2008
and I am having a problem. I am using a master page for my project
and I have set up two Public Properties on that page that need to be
set on each content page that is built based on it. I am using this
line of code in the content page so I can access the properties on the
master page:
<%@ MasterType VirtualPath="~/Registration.Master" %>
The error I keep getting whenever I make even the most trivial change
to the content page is in the .aspx.designer.vb file (for example,
Default.aspx.designer.vb). The code it generates looks like this:
'''<summary>
'''Master property.
'''</summary>
'''<remarks>
'''Auto-generated property.
'''</remarks>
Public Shadows ReadOnly Property Master() As
Registration.Registration
Get
Return CType(MyBase.Master, Registration.Registration)
End Get
End Property
The error is the Registration.Registration portion. The code should
read just Registration, not Registration.Registration. Once I change
the code back the page works correctly. Is there something I'm doing
wrong that is causing this error or is this a bug in Visual Studio?
Thanks,
Paul M. Frazier
(e-mail address removed)
and I am having a problem. I am using a master page for my project
and I have set up two Public Properties on that page that need to be
set on each content page that is built based on it. I am using this
line of code in the content page so I can access the properties on the
master page:
<%@ MasterType VirtualPath="~/Registration.Master" %>
The error I keep getting whenever I make even the most trivial change
to the content page is in the .aspx.designer.vb file (for example,
Default.aspx.designer.vb). The code it generates looks like this:
'''<summary>
'''Master property.
'''</summary>
'''<remarks>
'''Auto-generated property.
'''</remarks>
Public Shadows ReadOnly Property Master() As
Registration.Registration
Get
Return CType(MyBase.Master, Registration.Registration)
End Get
End Property
The error is the Registration.Registration portion. The code should
read just Registration, not Registration.Registration. Once I change
the code back the page works correctly. Is there something I'm doing
wrong that is causing this error or is this a bug in Visual Studio?
Thanks,
Paul M. Frazier
(e-mail address removed)