Solved

About site.map

Posted on 2011-09-19
3
223 Views
Last Modified: 2012-05-12
I suddenly think that a sitemap is unnecessary because navagiation is suffice.
For example.
 <div class="clear hideSkiplink">
                <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal">
                    <Items>
                        <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                        <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/>
                      </Items>
                </asp:Menu>
</div>

Open in new window

It is enough, why do I need sitemap?
Thanks for correcting my wrong thought.
0
Comment
Question by:zhshqzyc
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Swapnil Piparia
ID: 36560361
Hi zhshqzyc,

       site.map file is only required when you want to bind menu items with site.map file with Sitemap datasource. As you might have already seen site.map file it is xml file which provides flexibility to keep out your navigation items from your aspx files so that it can shared between pages.

       In your above code you have declare menuitem in design time so you don't require site.map file in your case.

Thanks,
netswap
0
 

Author Comment

by:zhshqzyc
ID: 36560476
Okay. So if I removed menuitem from above the code and use sitemap. What kind of code it likes?
0
 
LVL 16

Accepted Solution

by:
Swapnil Piparia earned 250 total points
ID: 36560519
Hi zhshqzyc,

 Below link will guide you.
http://www.codeproject.com/KB/aspnet/ASPNET_Menu.aspx
 
Thanks,
netswap
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Idea or tool for building a form application using ASP.net MVC 2 38
Hidden Field Value 10 57
Runtime Error 2 27
Syntax Error 2 42
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now