Solved

About site.map

Posted on 2011-09-19
3
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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.

730 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