Jump to content

making a SiteMap

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
macubex

macubex

    Newbie

  • Members
  • Pip
  • 3 posts
Hiii everyone!!!! i am learning ASP.Net in the Visual Web Developer Express 2008.
i want to create a page with SiteMap using a Menu control with the SiteMapDataSource control, but after to tried they cant works together. please anyone can help me..



thanks!!!


:)

#2
Kasper.Elbo

Kasper.Elbo

    Newbie

  • Members
  • Pip
  • 3 posts
Hi

Please check that the following is correct:

1. You have a valid SiteMap File called web.sitemap in your root directory of your web

it should look like this:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<siteMap>

  <siteMapNode title="Home" url="/home.aspx">

  <siteMapNode title="Page1" url="/page1.aspx">

    <siteMapNode title="Page1subdirectory1" url="/Page1_1.aspx"/>

    <siteMapNode title="Page1subdirectory2" url="/Page1_2.aspx"/>

  </siteMapNode>

  </siteMapNode>

</siteMap>


2. You have a control in your .aspx page called asp:SiteMapDataSource and a control called asp:Menu which should look like this:
<asp:SiteMapDataSource id="Menu" runat="server" />

<form runat="server">

<asp:Menu runat="server" DataSourceId="Menu" />

</form>

If you've got these correct, please paste your SiteMap file, so we can make sure that it isn't the problem.

Hope it helps
--
Kasper Elbo

#3
macubex

macubex

    Newbie

  • Members
  • Pip
  • 3 posts
Hi Kaspers.. thanks for your answer..it is very usefull... Actually i did a mapsite a week ago and i did the same steps that you suggested me... :)

it is necessary to clarify that you should to paste menus and sources in each page of your website, in this way you can do it...


thanks a lot...in case of other difficulty...i will ask you...see you

Macubex