Nested Master Pages: Accessing Properties

Discussion in 'ASP .Net' started by Diane Yocom, May 31, 2006.

  1. Diane Yocom

    Diane Yocom Guest

    I have two nested master pages, each with public properties. From my
    content page, I am able to access properties from both pages using either
    Master.PropertyName (for the child master page) or
    Master.Master.PropertyName (for the parent master page). The solution
    compiles and the HTML looks right, but my code has blue "error" underlines
    wherever I type Master.Master.PropertyName. When I hover over the
    underlined code, I get the following message:

    Reference required to assembly 'App_Web_appmain.maste.6044e34.4epngtbx,
    Version=0.0.0.0, Culture=neutral, PublicKey Token=null' containing the type
    'ASP.masters_appmain_master'. Add one to your project.

    AppMain_master is my parent master page.

    Can anyone tell me how to get rid of this error?
    Thanks!
    Diane Y.
    Diane Yocom, May 31, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Franks
    Replies:
    4
    Views:
    2,720
    Brock Allen
    Sep 20, 2005
  2. Doug McCann
    Replies:
    1
    Views:
    993
    William Brogden
    Aug 5, 2004
  3. Replies:
    1
    Views:
    3,190
    PeterKellner
    May 16, 2006
  4. vespaboy
    Replies:
    3
    Views:
    529
    vespaboy
    May 1, 2007
  5. katmagic
    Replies:
    0
    Views:
    1,235
    katmagic
    Dec 26, 2008
Loading...

Share This Page