new user: MasterPage error

new user: MasterPage error

Old forum URL: forums.lhotka.net/forums/t/3794.aspx


sundog posted on Sunday, October 28, 2007

Greetings,
I've installed and started to get familiar with the ProjectTracker sample app and have started to create a new app using CSLA and am getting this error in MasterPage.master.cs

The type 'MasterPage' already contains a definition for 'PageTitle'

So I tried commenting out this line at the top of the MasterPage class:

    protected System.Web.UI.WebControls.Label PageTitle;

But that causes this compile error on this line in PageLoad:

    PageTitle.Text = Page.Title;

'The name "PageTitle" doesn't exist in the current context.'

I know this is pretty basic stuff, but don't yet see why MasterPage already contains a definition for PageTitle.

Thanks
/Ken

Copyright (c) Marimer LLC