This is my first time by using nested MasterPages and I don't really know how it works. I want to change that part of my web and, depending of the user logged, show a menu linking to a content or another.
Currently, my web shows the same menus to all users, and if you are a regular user who try to access to a restricted content, a password request will show up.
So, I create the Master and the Index linked to it, then the NestedMasters linked to the Master, but how do I link Web1 and Web2 to its respectively NestedMaster?
When I create these two last files and try to linked them, the Visual Studio doesn't create the ContentPlaceHolder, why? And when the user get logged, which file should I navigate to, the NestedMaster or the aspx linked to the NestedMaster?
jos3
Member
7 Points
44 Posts
A little confused with MasterPages and NestedMasterPages
Dec 15, 2012 03:29 PM|LINK
Hi everybody,
This is my first time by using nested MasterPages and I don't really know how it works. I want to change that part of my web and, depending of the user logged, show a menu linking to a content or another.
Currently, my web shows the same menus to all users, and if you are a regular user who try to access to a restricted content, a password request will show up.
My schema in the project is as follows:
+ Administration (folder)
- NestedMasterPage1.master
- Web1.aspx
+ Consulting (folder)
- NestedMasterPage2.master
- Web2.aspx
- Site.Master
- Index.aspx
So, I create the Master and the Index linked to it, then the NestedMasters linked to the Master, but how do I link Web1 and Web2 to its respectively NestedMaster?
When I create these two last files and try to linked them, the Visual Studio doesn't create the ContentPlaceHolder, why? And when the user get logged, which file should I navigate to, the NestedMaster or the aspx linked to the NestedMaster?
RameshRajend...
Star
7983 Points
2099 Posts
Re: A little confused with MasterPages and NestedMasterPages
Dec 15, 2012 03:36 PM|LINK
http://msdn.microsoft.com/en-us/library/x2b3ktt7(v=vs.100).aspx
http://www.asp.net/web-forms/tutorials/master-pages/nested-master-pages-cs
jos3
Member
7 Points
44 Posts
Re: A little confused with MasterPages and NestedMasterPages
Dec 16, 2012 10:21 AM|LINK
All I needed was add a ContentPlaceHolder to the Content created in the nested masterpage and then link to the aspx file, that's all
Thanks for your reply, RameshRajendran