Solved

About site.map

Posted on 2011-09-19
3
222 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

19 Experts available now in Live!

Get 1:1 Help Now