CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 7/3/2006 3:32:49 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
dorrell
Asp.Net User
Dynamic horizonal menu7/3/2006 3:32:49 AM

0/0

This may be a dumb question, but I am new at this.  I would like to create a menu just like the one being used on this forum.  The menu grows as you go deeper into the forum.  For example, the menu current says something like this:

ASP.NET Forums >> General ASP.NET >> Master Pages...

You can click on any of the items shown in the menu, and it will take you back to that level.  Is this a menu control?  How is this menu code written?  I assume it uses the title from the pages and keeps building the menu.  Am I correct?

Would someone please tell me how this is done in ASP.NET 2.0.

Thanks. 

rajivpopat
Asp.Net User
Re: Dynamic horizonal menu7/3/2006 7:08:14 AM

0/0

Yes, achieving this in ASP.NET is fairly easy; in fact there IS NO CODE to write:)! ASP.NET 2.0 can do this for you fairly out of the box. In Web Development world what you refer to above are called ?Breadcrumbs?. In Visual Studio.NET 2005 there s a "Site Map Path" control which allows you to get this functionality in your site without writing a single line of Code!
 
I?ll try and give you a quick How-to on it and then you can google / MSDN for more information. Here?s how you can quickly get started and create a quick breadcrumb.
 

  • Create a ASP.NET site (Assuming you?ve already done this).
  • Create a new master page (not required but helps if you don't want to place the bread crumb control on each and every page of your site). For more information on master pages you can lookup my article: http://www.codeproject.com/aspnet/ImplementMasterPages.asp
  • Create pages you need by basing them on the master page (article above shows you how).
  • Create a sitemap: Right click project / new item? /site map / web.sitemap. This is a simple XML file which is self explanatory. The Url attribute denotes physical (usually relative) path to the aspx file. Title?s are displayed in Bread Crumbs and the node hierarchy in this XML denotes which item displays where in the breadcrumb. For items to appear in breadcrumb the physical file MUST exist in the same Url as pointed out by the URL attribute. The code snippet below illustrates:

        <?xml version="1.0" encoding="utf-8" ?>
     <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
         <siteMapNode url="Default.aspx" title="Home"  description="Home Page">
             <siteMapNode url="MyInformation.aspx" title="My Information"  description="Information About me" />
         </siteMapNode>
     </siteMap>

  • Becuase of the above XML the Bread crumb will display "Home > My Information" even though Default.aspx and MyInormation.aspx are "technically" in the same folder level. So, Basically, the site map governs where items are displayed within the breadcrumbs and not the physical location of files.
  • Drag and Drop the "Site Map Path" control (available in Visual Studio.NET 2005 toolbox under Navigation Control)
  • You're Done! ASP.NET automatically shows you the correct links and manages the breadcrumbs for you as you navigate from page to page!

Now, that you have a fair idea of what you are looking for; you might be able to search on Google/MSN or MSDN and find related material better. Let me know if you have any more problems.

Cheers,
Rajiv.

P.S: No question is dumb. Some can be google'ed easily some can't :) - Everyone had to start somewhere! Keep Coding!! Cheers!

rajivpopat
Asp.Net User
Re: Dynamic horizonal menu7/3/2006 7:10:32 AM

0/0

Yes, achieving this in ASP.NET is fairly easy; in fact there IS NO CODE to write:)! ASP.NET 2.0 can do this for you fairly out of the box. In Web Development world what you refer to above are called ?Breadcrumbs?. In Visual Studio.NET 2005 there s a "Site Map Path" control which allows you to get this functionality in your site without writing a single line of Code!
 
I?ll try and give you a quick How-to on it and then you can google / MSDN for more information. Here?s how you can quickly get started and create a quick breadcrumb.
 

  • Create a ASP.NET site (Assuming you?ve already done this).
  • Create a new master page (not required but helps if you don't want to place the bread crumb control on each and every page of your site). For more information on master pages you can lookup my article: http://www.codeproject.com/aspnet/ImplementMasterPages.asp
  • Create pages you need by basing them on the master page (article above shows you how).
  • Create a sitemap: Right click project / new item? /site map / web.sitemap. This is a simple XML file which is self explanatory. The Url attribute denotes physical (usually relative) path to the aspx file. Title?s are displayed in Bread Crumbs and the node hierarchy in this XML denotes which item displays where in the breadcrumb. For items to appear in breadcrumb the physical file MUST exist in the same Url as pointed out by the URL attribute. The code snippet below illustrates:

        <?xml version="1.0" encoding="utf-8" ?>
     <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
         <siteMapNode url="Default.aspx" title="Home"  description="Home Page">
             <siteMapNode url="MyInformation.aspx" title="My Information"  description="Information About me" />
         </siteMapNode>
     </siteMap>

  • Becuase of the above XML the Bread crumb will display "Home > My Information" even though Default.aspx and MyInormation.aspx are "technically" in the same folder level. So, Basically, the site map governs where items are displayed within the breadcrumbs and not the physical location of files.
  • Drag and Drop the "Site Map Path" control (available in Visual Studio.NET 2005 toolbox under Navigation Control)
  • You're Done! ASP.NET automatically shows you the correct links and manages the breadcrumbs for you as you navigate from page to page!

Now, that you have a fair idea of what you are looking for; you might be able to search on Google/MSN or MSDN and find related material better. Let me know if you have any more problems.

Cheers,
Rajiv.

P.S: No question is dumb. Some can be google'ed easily some can't :) - Everyone has to start somewhere! Keep Coding!! Cheers!

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Human-computer Interaction: Theory and Practice Authors: Michael Smith, Julie A. Jacko, Constantine Stephanidis, Don Harris, Vincent Duffy, Pages: 5800, Published: 2003
Human-computer Interaction: Theory and Practice Authors: Michael Smith, Constantine Stephanidis, Symposium on Human Interface Japan, Julie A. Jacko, Don Harris, Vincent Duffy, Pages: 0, Published: 2003
DVD Studio Pro 4: The Complete Guide to DVD Authoring with Macintosh Authors: Bruce C. Nazarian, Pages: 536, Published: 2006
Alan Simpson's Windows Vista Bible Authors: Alan Simpson, Todd Meister, Pages: 1176, Published: 2007
ASP.NET 3.5 For Dummies Authors: Ken Cox, Pages: 404, Published: 2008
Designing Web Navigation: Optimizing the User Experience Authors: James Kalbach, Pages: 394, Published: 2007
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
Harnessing AutoCAD 2006 Authors: Thomas A. Stellman, G. V. Krishnan, Pages: 1187, Published: 2005
The About.com Guide to Web Design: Build and Maintain a Dynamic, User-Friendly Web Site Using Html, Css and Javascript Authors: Jennifer Kyrnin, Pages: 288, Published: 2007

Web:
Dynamic horizonal menu - ASP.NET Forums ASP.NET Forums » General ASP.NET » Master Pages, Themes and Navigation Controls » Dynamic horizonal menu ... Re: Dynamic horizonal menu ...
SimplytheBest DHTML dynamic horizontal dropdown menu script Simply the Best DHTML scripts and javascripts: dynamic horizontal dropdown menu script.
Dynamic Drive DHTML Scripts- HV Menu 5.5 This applies EXCLUSIVELY to script found on Dynamic Drive, and not author's site . Menu can be vertically static; Menu can be horizontal justified ...
How To: Create a Dynamic Horizontal Navigation Menu for TypePad ... To create a dynamic horizontal menu as seen above, follow the steps in the extended post. You must have a TypePad Pro account and be using advanced ...
Dynamic Vertical or Horizontal Menu - online generator Vertical / Horizontal Menu Generator w/ sub menus. STEP 1: View Colors. SELECT YOUR FONT AND COLORS. SELECT YOUR MENU LAYOUT & COLORS. Font Family: ...
A dynamic horizontal tab menu | drupal.org A dynamic horizontal tab menu. Last modified: November 19, 2007 - 14:52. The most prominent feature here is the horizontal navigation tabs. ...
Horizontal dynamic Menu
CSS Horizontal Dynamic Menu (Paul's edition), shopping cart ... Mar 22, 2007 ... shopping cart software | Zen Cart Ecommerce Solution CSS Horizontal Dynamic Menu (Paul's edition), This mod will allow you to have a ...
Dynamic Horizontal Menu 01 - FlashDen Dynamic Horizontal Menu 01 is a nice menu and of course a best buy purchase because the level of customisations is as high as it can be. ...
Dynamic Drive CSS Library- SuckerTree Horizontal Menu Sep 14, 2006 ... Author: Dynamic Drive. SuckerTree Horizontal Menu is a CSS and DOM hybrid menu that's list based and supports multiple levels of sub menus. ...

Videos:
Ciphone 3G face,mobile phone,More features will be added in. MSN:[email protected] SKype:markma424 www.made-in-china.com/showroom/aiwahn. The world's first 1: 1 3G clone with same size same weight, same dyn...




Search This Site:










designer being oddly generated...

removing home from menu

display username instead of first last name

how can i remove " from the string?

my setting has something wrong or it is a bug of dnn?

vs 2005 not showing asp controls

moving arrow icon in menu control

caching code that binds a drop down

i really need help

dal classes

snowcovered not online !!

looking for new custom module

problem with unlocking the users programmatically

how do i bind data to a control in the createuserwizard control?

show sub-menu in different place

newbie - delphi programmer floundering in c#

can't get past login

uploaded images are not deleted.

load .htm page using contentplaceholder

debugging dnn

authenticating with ms access and vb

property changed event

where are the dnn 3.2.1 documentation sample files?

error 102 the application domain in which the thread was running has been unloaded.

filling tree node

automatically make ssl at root level

header, footer, content template control

event order for authentication

databinder.eval

weird: cannot cast "class a" into "class a" when page recompiled.

 
All Times Are GMT