RE: site maps & menu control

Tech-Archive recommends: Fix windows errors by optimizing your registry



Bret,

I tweaked the sitemap.xml in the following way and i could able to produce
the result as you expected.

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"; >
<!--don't disturb the top-level node-->
<siteMapNode url="" title="" description="">

<!--Items for the menu1-->
<siteMapNode url="" title="Menu1" description="" >
<siteMapNode url="" title="1Child1" description="" />
<siteMapNode url="" title="1Child2" description="" />
<siteMapNode url="" title="1Child3" description="" />
</siteMapNode>

<!--items for the menu 2-->
<siteMapNode url="" title="Menu2" description="" >
<siteMapNode url="" title="2Child1" description="" />
<siteMapNode url="" title="2Child2" description="" />
<siteMapNode url="" title="2Child3" description="" />
</siteMapNode>

<!--items for the menu 3-->
<siteMapNode url="" title="Menu3" description="" >
<siteMapNode url="" title="3Child1" description="" />
<siteMapNode url="" title="3Child2" description="" />
<siteMapNode url="" title="3Child3" description="" />
</siteMapNode>

</siteMapNode>

</siteMap>

If you want horizonal orientation of nodes go for Menu Control and if yo
want vertical orientation of nodes go in for TreeView Control

Thanks & Regards,
Mark Nelson


"Bret" wrote:

I have spent hours trying to configure the web.sitemap and the webform MENU
CONTROL properties to give me the menu format I need w/o success, even
though I've literally copied from examples from books and support sites.
Heres is the format I want on the leftside of my form. The "headings" do
not have any url set as property, they are exactly that, just headings and I
need it to appear vertically. Though I prefer the list displaying, even if
they appear after "hovering" or clicking on heading that is fine. The
actual code appears after below. Please help. thanks.

Menu1
1Child1
1Child2
1Child3

Menu2
2Child1
2Child2
2Child3

Menu3
3Child1
3Child2
3Child3

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"; >

<siteMapNode title="Menu1" >
<siteMapNode url="1Child1.aspx" />
<siteMapNode url="1Child2.aspx" />
<siteMapNode url="1Child3.aspx" />
</siteMapNode>

<siteMapNode title="Menu2" >
<siteMapNode url="2Child1.aspx" />
<siteMapNode url="2Child2.aspx" />
<siteMapNode url="2Child3.aspx" />
</siteMapNode>

<siteMapNode title="Menu3" >
<siteMapNode url="3Child1.aspx" />
<siteMapNode url="3Child2.aspx" />
<siteMapNode url="3Child3.aspx" />
</siteMapNode>

</siteMap>

.



Relevant Pages

  • RE: site maps & menu control
    ... "Mark Nelson" wrote: ... If you want horizonal orientation of nodes go for Menu Control and if yo ... Heres is the format I want on the leftside of my form. ... not have any url set as property, they are exactly that, just headings and I ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: new menu control is very slow
    ... added links in the siteMap, and added some names to the GridView. ... > Regarding on the Menu control displaying slow problem, ... If the problem occurs on all the client, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: ASP.NET
    ... sitemap and so as a user control. ... > programmer and uses VB.NET quite extensively. ... > would be to use frames, but I don't want to go with frames. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Sitemap, Menu control - formatting
    ... and struggling with the sitemap and menu control. ... The first produces a menu with a single top level item, "GPC Home" and six ... Fair Vendors ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Tabbed control for ASP.NET pages
    ... Another thing instead of the Repeater is a variation of the TreeView. ... reason this is such a good control for a tab-based application is that it ... can show a single level of a SiteMap (my favorite feature of ASP.Net 2.0, ... BTW), styled as "tab buttons". ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)