Issue with Master Pages

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top