CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/29/2007 7:05:34 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 7 Views: 29 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
8 Items, 1 Pages 1 |< << Go >> >|
narik
Asp.Net User
Master page with menus8/29/2007 7:05:34 AM

0/0

Hi,

i want to have menu to the left edge of my master page. On selecting a submenu, i want to load my aspx page to the right side of the menu.

I am very new to master pages. So, even if this seems to a simple one. please help me Smile

 


If you keep your feet firmly on the ground, you'll have trouble putting on your pants!
millet
Asp.Net User
Re: Master page with menus8/29/2007 8:01:14 AM

0/0

Hi,

What you try to accomplish is quite unusual.  Usually you would apply master page to page at run time not vice versa. However you can dynamically load user controls on aspx page. You place PlaceHolder on your page and then based on querystring or something else load controls to that PlaceHolder. Any of these options will require full postback so you menu will disappear with page and load again.

Another way is to use frames (don't do it). 


__
Please mark post as answer if it helps, if not come back and ask again!
SwaroopNet
Asp.Net User
Re: Master page with menus8/29/2007 8:43:26 AM

0/0

Bind the data to any of the Navigation Controls(TreeView or Menu Control )  when the page loads. 

 Write the following code in the page load of the Master Page.

if (!Page.IsPostBack)

{

SideMenu_Bind();

}

private void SideMenu_Bind() 

{

// Get the Data from the DB or from the Xml file if you want to bind the menu dynamically

//Bind the data to the Menu

// Use Xml DataSource Control SiteMap for easy Implementation.

}

 

narik
Asp.Net User
Re: Master page with menus8/29/2007 9:53:19 AM

0/0

Millet,

can you please explain why not frames?


If you keep your feet firmly on the ground, you'll have trouble putting on your pants!
narik
Asp.Net User
Re: Master page with menus8/29/2007 9:54:37 AM

0/0

Swaroop,

this will post back my page and keep loading menus everytimeSad


If you keep your feet firmly on the ground, you'll have trouble putting on your pants!
millet
Asp.Net User
Re: Master page with menus8/29/2007 10:17:21 AM

0/0

Well, they are usually considered bad because:

  • search engines have some difficulties indexing them;
  • user always sees only address of the first page, cannot easily write or send link to someone or bookmark it;
  • it is harder to maintain for developer.

I see one benefit as well:

 

  • Less Internet traffic and faster page load. Since you load one frame only you do not have to load header, menu, side bars etc every time, which means that you are transferring less data between server and user computer.

These days I usually create Master page or two and add to it Menu.ascx which has links to other pages. After that I just add pages and modify Menu.ascx if I add, remove or move pages.


__
Please mark post as answer if it helps, if not come back and ask again!
narik
Asp.Net User
Re: Master page with menus8/30/2007 3:46:36 AM

0/0

Millet thanks for the reply.

Firstly, the application which i am currently working is a intranet one. So, there is no search engine.

Between, can you please explain me more briefly about your approach.

 


If you keep your feet firmly on the ground, you'll have trouble putting on your pants!
Amanda Wang - M
Asp.Net User
Re: Master page with menus8/31/2007 4:00:02 AM

0/0

Hi,

Do you want the page donot postback when you click on the menu items?

In this forum, there is an old thread that discussed this problem: http://forums.asp.net/t/1146505.aspx. You can refer it.

You can use iframe to prevent the entire page postback instead of master page.

The more about how the master page works, you can read this article: http://www.odetocode.com/Articles/450.aspx

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
8 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
QuarkXPress 5 for Macintosh and Windows: Visual QuickStart Guide Authors: Elaine Weinmann, Peter Lourekas, Pages: 498, Published: 2002
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
Adobe InDesign CS3 Bible Authors: Galen Gruman, Pages: 988, Published: 2007
Foundations of Microsoft Expression Web: The Basics and Beyond Authors: Cheryl D. Wise, Pages: 370, Published: 2007
Microsoft Publisher 2007 for Dummies Authors: Jim McCarter, Jacqui Salerno Mabin, Pages: 366, Published: 2007
Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 Authors: Amanda Murphy, Shane Perran, Pages: 552, Published: 2007
The Graphic Designer's Digital Toolkit Authors: Allan B. Wood, Pages: 481, Published: 2003
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
Adobe Creative Suite 3 Web Premium All-in-One Desk Reference For Dummies: All-in-one Desk Reference for Dummies Authors: Damon Dean, Andy Cowitt, Jennifer Smith, Christopher Smith, Pages: 882, Published: 2007
Adobe Creative Suite 2 All-in-One Desk Reference For Dummies Authors: Jennifer Smith, Christopher Smith, Pages: 736, Published: 2005

Web:
CodeProject: Using Menu and Sitemap with Master page. Free source ... An article on how to use Menu and Sitemap data source controls with Master pages to create a Master - Child navigation menu.; Author: Nataraj K; ...
Master Page and Menus - ASP.NET Forums Our web designer is struggling to get selected menu items to highlight when the menu is part of the master page. ...
ASP.NET 2.0 Master Page Problem I am using the menu in an ASP.NET Master Page which is inherited by several ... Below is an example of the master page menu references. ...
HELP..! ASP.NET 2.0 MasterPage and menu Question.. - .NET ASP HELP..! ASP.NET 2.0 MasterPage and menu Question... Get answers to your questions in our .NET ASP forum.
asp.net 2.0 master page asp:menu bug Talk about asp.net 2.0 master page asp:menu bug. ... tfsmag. Posts: n/a. Default Re: asp.net 2.0 master page asp:menu bug ...
Masterpage and menu clickevent - ASP.NET Forums Oct 29, 2008 ... I have menu control in master page which is connected to Sitemap datasource. Since I placed the menu in master page will the clickevent of ...
Tutorial 3: Master Pages and Site Navigation This menu is in the master page and bound to the site map defined in Web.sitemap , meaning that any change to the site map will be immediately reflected on ...
Master Pages and Navigation In this case it is the light shaded content at the top and left, representing menus and other navigation features. The master page defines content areas ...
www.wysiwygwebbuilder.com :: View topic - Sothink DHTML Menu on ... Is it not possible to use JavaScript-based menu code on a master page? (When I look at the HTML code of the site pages, I'm noticing that ...
How to Dynamically add menu items to master page in ASP.NET 3.5 ... I am considering creating a table and relating the allowable menu items to role relationship so I can pass to the master page for rendering the dynamic menu ...

Videos:
RCxhet - Como crear un menu,treeview ASP .net Part 2 RCxhet - Como crear un menu,treeview y un site map en asp.net Ancho de un contentPlaceHolder Agregar imagen de master page en pagina que esta en subc...
how to make a master chief costume this is the only video on youtube showing how to fully make youre own master chief costume out of resin and fiberglass. *EDIT* http://www.tamasoft....
Chen Taijiquan Master Ren GuangYi & Lou Reed -YMAA Tai Chi Master Ren GuangYi has worked tirelessly to bring Chen style Taijiquan (Tai Chi Chuan) to the West since 1991. In this DVD, he beautifully demonstrat...
EXteel review part 2- Menu Basics This will move fast :)... PLZ RATE 5 davenSTARS AND SUBSCRIBE Links to websites of exteel...(updating). http://eu.exteel.com/eu/media#movies www.ext...
Queen - White Queen - Live at the Hammersmith Odeon 1975 White Queen from Queen II performed live at the Hammersmith Odeon on Christmas Eve, 1975 An Evening With Queen, 1974-1976 2DVD White Queen from Quee...
Queen - In The Lap of the Gods Revisited - Live 1974 In the Lap of the Gods Revisited from the Sheer Heart Attack album performed Live at the Rainbow Theater in London, Nov. 20, 1974 An Evening With Qu...
Queen - Ogre Battle - Live at the Hammersmith Odeon Ogre Battle from Queen II performed live at the Hammersmith Odeon on Christmas Eve, 1975 An Evening With Queen, 1974-1976 2DVD White Queen from Quee...
Queen - Stone Cold Crazy - Live 1974 Stone Cold Crazy from the album Sheer Heart Attack performed Live at the Rainbow Theater, Nov. 20, 1974. An Evening With Queen, 1974-1976 2DVD set:...
Queen - Ogre Battle/Sweet Lady Considered by many, including band members themselves, to be one of Queen's greatest performances. Recorded live at Hyde Park in front of over 100,00...
Charlie Rose - Media Coverage of the war in Iraq / Eduardo Galeano Segment 1: A panel on media coverage of the war in Iraq with guest host Mary Matalin, former counselor to Vice President Cheney. She talks to Michae...




Search This Site:










removing the mobil functionality from the portal

setting up the ibuyspy portal on an sql 2000 server

all edit*.aspx get null reference

how to apply stylesheet in html module?

book review on "building an asp.net intranet"?

ibuyspy mobile viewing error

cannot open portalcsvs in vs.net

access to the path ..portalcfg.xml is denied

fk between orderdetails and products

how to make setup for my own asp.net project and its database

login

upgrade version

error in htmlmodule

connection string - packet size

modules....

admin tab

installing asp.net portal using prtl.exe localfullinstall.bat

ibs portal download?

transforming starterkit into kb

why i can't find the .sln or .csproj file in the

portal problem or just me not thinking today ... please help

please help

forum management system as a portal module?

deployed, not working

strange behavior in ibuyspy portal?

if you want xml quiz module :)

starter kits won't do anything

commercializing the protal kit, willing to help

login.aspx , returnurl= , and & = %26

checking isinrole

  Privacy | Contact Us
All Times Are GMT