??? anyone home?
Main Topics
Browse All TopicsHi,
I am using asp.net menu with sitemap.
In my Visual studio, and when I run this - everything looks good - When I mouse over "1" - I can see all the lists (1-1, 1-2, 1-3)
But, when I upload to the server, I am getting "Expand to 1".. and I do not see 1-1, 1-2, and 1-3...
Anyone know why?
Thanks.
I have:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.micr
<siteMapNode>
<siteMapNode url="~/Default.aspx" title="HOME" description=""/>
<siteMapNode url="1.aspx" title="1" description="">
<siteMapNode url="1-1.aspx" title="1-1" description=""/>
<siteMapNode url="1-2.aspx" title="1-2" description=""/>
<siteMapNode url="1-3" title="1-3" description=""/>
</siteMapNode>
</siteMapNode>
</siteMap>
In my config - I have this - I would like to pick a different - sitemap. ( I do not think this should do anything..)
<siteMap enabled="true">
<providers>
<add name="SiteMap1" type="System.Web.XmlSiteMa
<add name="SiteMap2" type="System.Web.XmlSiteMa
</providers>
</siteMap>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
LOL.
Thanks LearnedOne.
"I did not change anything - now, I am getting error message - "The SiteMapProvider 'SiteMap1' cannot be found. "" - is okay now.
Except that - I can not have children in the sitemap.
This is my simple test sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.micr
<siteMapNode>
<siteMapNode url="page1.aspx" title="Page1" description=""/>
<siteMapNode url="Page2.aspx" title="Page12" description="">
<siteMapNode url="Page12-1.aspx" title="Page12-1" description=""/>
<siteMapNode url="Page12-2.aspx" title="Page12-2" description=""/>
<siteMapNode url="Page12-3.aspx" title="Page12-3" description=""/>
<siteMapNode url="Page12-4.aspx" title="Page12-4" description=""/>
<siteMapNode url="Page12-5.aspx" title="Page12-5" description=""/>
<siteMapNode url="Page3.aspx" title="Page12-6" description=""/>
</siteMapNode>
</siteMapNode>
</siteMap>
and in my Default.aspx - I have:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataS
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</div>
</form>
</body>
</html>
and Code behind:
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SiteMapDataSource1.SiteMap
}
}
and in the web.config:
<siteMap enabled="true">
<providers>
<add name="Test" type="System.Web.XmlSiteMa
</providers>
</siteMap>
If I do not put a children - I am getting my menu normally - but when there is a child - (mouseover items) - it displays as X says "Expand Page2"...
All I am trying to achieve here is that -
Page1
Page2 (I want these items to pop when the mouse over Page2)
Page2-1
Page2-2
Page2-3
Page3
you got my message...
Business Accounts
Answer for Membership
by: neonlightsPosted on 2008-03-09 at 18:21:31ID: 21083539
I did not change anything - now, I am getting error message - "The SiteMapProvider 'SiteMap1' cannot be found. "
Does anyone know why?
Thanks.