Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
HI EXPERTS
 
I am creating one application using master page. I want the menu to be displayed dynamically. How can i achieve this using Content page.
 
Thanks in advance for your help.
 
Rgds
Jagadesh
Posted 26-Jun-13 1:31am
Comments
Rohan Leuva at 26-Jun-13 6:44am
   
Master page is for the similar layout.If you have 4 things on your page,in which 3 things remain constant at everytime,then put them in masterpage,so the remaining 1 will be in content page.Now,for your question if the menu is dynamic then put them in content page with placeholder perticular for that menu.
Kumar from madras at 26-Jun-13 7:22am
   
Hi Rohan
Thanks for your reply.
I can bring the data from database. Through Content page menu has to be displayed in master page.
Rohan Leuva at 26-Jun-13 7:49am
   
what you are trying to do?what you want and where you want?
Khan JI at 26-Jun-13 6:53am
   
Or you can use the UserControls rather than Master Pages....
Kumar from madras at 26-Jun-13 7:20am
   
Hi Khan
 
Thanks for your Reply
I done the dynamic menu loading on Normal ASPX page. I want to done this on Master Page.
Any Help.
Khan JI at 26-Jun-13 7:49am
   
Hi Kumar.. So you wana alter some of the Master page content from its Childpage on runtime basis?? i.e dynamically.
Khan JI at 26-Jun-13 7:51am
   
Hope that gona give you some idea...
 
http://www.codeproject.com/Articles/333650/Beginner-s-Tutorial-on-Master-Pages-in-ASP-NET
 
http://stackoverflow.com/questions/15986601/changing-menu-content-of-master-page-from-child-page-in-asp-net
 
http://stackoverflow.com/questions/3024611/change-panel-visible-property-on-masterpage-from-child-pages
Mahesh Bailwal at 26-Jun-13 7:52am
   
You can create PlaceHolder in MasterPage and then you can load dynamic menu from Content Page in that PlaceHolder.
 
Below link on Master Page will help you.
http://msdn.microsoft.com/en-us/library/c8y19k6h(v=vs.100).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 DamithSL 225
3 Afzaal Ahmad Zeeshan 202
4 Maciej Los 190
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100