Nested Master pages

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
 
G

Guest

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
 

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,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top