Solved

About site.map

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with C#, MVC, razor. 6 34
Regex validation 2 24
tutorial for ebay api 3 32
Get number of Files in Directory and Sub Directories 2 39
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 …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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