Posted by : Rhyf Ahmad Wednesday, May 13, 2015

The Web applications that you develop generally have more than a single page to them. Usually, you create a number of Web pages that are interconnected in some fashion. If you also build the navigation around your collection of pages, you make it easy for the end user to successfully work through your application in a straightforward manner.
Currently, you must choose from among a number of different ways to expose the paths through your application to the end user. The difficult task of site navigation is compounded when you continue to add pages to the overall application. The present method for building navigation within Web applications is to sprinkle pages with hyperlinks. Hyperlinks are generally added to Web pages by using include files or user controls. They can also be directly hard - coded onto a page so that they appear in the header or the sidebar of the page being viewed. The difficulties in working with navigation become worse when you move pages around or change page names. Sometimes, developers are forced to go to each and every page in the application just to change some aspect of the navigation. ASP.NET 4 tackles this problem by providing a navigation system that makes managing how end users work through the applications you create quite trivial. This capability in ASP.NET is complex; but the great thing is that it can be as simple as you need it to be, or you can actually get in deep and control every aspect of how it works. The site navigation system includes the capability to define your entire site in an XML file that is called a sitemap . After you define a sitemap, you can work with it programmatically using the SiteMap class. Another aspect of the sitemap capability available in ASP.NET is a data provider that is specifically developed to work with sitemap files and to bind them to a series of navigation – based server controls. This chapter looks at all these components in the ASP.NET 4 navigation system. The following section introduces sitemaps.

Contents:

XML-Based Sitemaps
SiteMapPath Server Control
  1. The PathSeparator Property
  2. The PathDirection Property
  3. The ParentLevelsDisplayed Property
  4. The ShowToolTips Property
  5. The SiteMapPath Control’s Child Elements

TreeView Server Control
  1. Identifying the TreeView Control’s Built-In Styles
  2. Examining the Parts of the TreeView Control
  3. Binding the TreeView Control to an XML File
  4. Selecting Multiple Options in a TreeView
  5. Specifying Custom Icons in the TreeView Control
  6. Specifying Lines Used to Connect Nodes
  7. Working with the TreeView Control Programmatically

Menu Server Control
  1. Applying Different Styles to the Menu Control
  2. Using Menu Events
  3. Binding the Menu Control to an XML File

SiteMap Data Provider
  1. ShowStartingNode
  2. StartFromCurrentNode
  3. StartingNodeOffset
  4. StartingNodeUrl

SiteMap API
URL Mapping
Sitemap Localization
  1. Structuring the Web.sitemap File for Localization
  2. Making Modifications to the Web.config File
  3. Creating Assembly Resource (.resx) Files
  4. Testing the Results

Security Trimming
  1. Setting Up Role Management for Administrators
  2. Setting Up the Administrators’ Section
  3. Enabling Security Trimming

Nesting SiteMap Files



Ebook Preview
Get the ebook now (1.04 MB)

If the link above doesn't work, try the link below


Mirror: Get the ebook now (1.04 MB)

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -