[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

About site.map

Posted on 2011-09-19
3
Medium Priority
?
232 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 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

650 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