Nested Master pages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top