newbie: question about asp.net 2.0 menu

J

Jeff

hey

asp.net 2.0

In my web project I want to use several menus: (top menu & a side menu, the
side menu is dependent on what is selected in the top menu)

MENU1:
ITEM 1
ITEM 2
ITEM 3
ITEM 4

MENU2:
ITEM 5
ITEM 6
ITEM 7
ITEM 8

This is a standard web.sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="">
<siteMapNode url="" title="" description="" />
<siteMapNode url="" title="" description="" />
</siteMapNode>
</siteMap>

I don't see how to configure my menus in a web.sitemap. Because
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="Menu1" description="">
<siteMapNode url="" title="Item1" description="" />
<siteMapNode url="" title="Item2" description="" />
</siteMapNode>
</siteMap>
Will as I understand it only shows item1 and item2 when the user clicks on
menu1. And it will AFAIK not generate a side menu...

And this will AFAIK not work either
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="Menu1" description="" />
<siteMapNode url="" title="Item1" description="" />
<siteMapNode url="" title="Item2" description="" />
</siteMap>

I thought about using SiteMapDataSource to bound the web.sitemap to the
menus

Well maybe this is possible but my I don't see how.....

any suggestions to how to embed my menus in the web.sitemap file?.

Jeff
 

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,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top