Nested Master pages

Discussion in 'ASP .Net' started by =?Utf-8?B?TGFrc2htaSBOYXJheWFuYW4uUg==?=, Oct 1, 2004.

  1. Hi Experts,

    Working with Visual Web Develope 2005 Express, as per the example given in
    the URL http://msdn2.microsoft.com/library/x2b3ktt7.pf
    , the following error comes. "Could not find any attribute 'Master' of
    element 'Master' ". The

    attribute available there is 'MasterPageFile'. So, if any one know the
    solution with nested

    master pages pls let me know.

    Regards
    Laks.R
    =?Utf-8?B?TGFrc2htaSBOYXJheWFuYW4uUg==?=, Oct 1, 2004
    #1
    1. Advertising

  2. Hi guys,

    well, the answer found.

    In the <%@ master %> directive instead of putting the
    <%@ master master="~/TopHeader.master" %> , we have to put
    <%@ master MasterPageFile = "~/TopHeader.master" %> , it works fine.

    Here the attribute 'master' is readonly.
    'MasterPageFile' is for '@page directive' as well as for '@master directive'.

    http://msdn2.microsoft.com/library/x2b3ktt7.pf
    In the above mentioned article, they used the 'master' attribute instead of
    'MasterPageFile'.

    Happy programming!!

    regards
    =?Utf-8?B?TGFrc2htaSBOYXJheWFuYW4uUg==?=, Oct 4, 2004
    #2
    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. Electrified Research
    Replies:
    5
    Views:
    2,448
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Oct 11, 2005
  2. Doug McCann
    Replies:
    1
    Views:
    993
    William Brogden
    Aug 5, 2004
  3. Replies:
    1
    Views:
    3,191
    PeterKellner
    May 16, 2006
  4. Sam
    Replies:
    0
    Views:
    695
  5. katmagic
    Replies:
    0
    Views:
    1,238
    katmagic
    Dec 26, 2008
Loading...

Share This Page