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!!!
:)
making a SiteMap
Started by macubex, Feb 11 2009 02:13 PM
2 replies to this topic
#1
Posted 11 February 2009 - 02:13 PM
|
|
|
#2
Posted 20 February 2009 - 03:11 AM
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:
2. You have a control in your .aspx page called asp:SiteMapDataSource and a control called asp:Menu which should look like this:
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
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
Posted 20 February 2009 - 10:26 AM
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
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


Sign In
Create Account

Back to top









