-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: VBGuru
Message 1 in Discussion
Introduction
The goal of ASP.NET's site navigation feature is to allow a developer to
specify a site map that describes his website's logical structure. A site map
is constructed of an arbitrary number of hierarchically-related site map nodes,
which typical contain a name and URL. The site navigation API, which is
available in the .NET Framework via the SiteMap class, has properties for
accessing the root node in the site map as well as the "current" node (where
the "current" node is the node whose URL matches the URL the visitor is
currently on). As discussed in Part 2 of this article series, the data from the
site map can be accessed programmatically or through the navigation Web
controls (the SiteMapPath, TreeView, and Menu controls).
The site navigation features are implemented using the provider model, which
provides a standard API (the SiteMap class) but allows developers to plug in
their own implementation of the API at runtime. ASP.NET 2.0 ships with a single
default implementation, XmlSiteMapProvider,
Site Navigation in ASP.NET 2.0
Implementing site navigation in ASP.NET 2.0 is a breeze, thanks to the building
site navigation features. Internally, ASP.NET offers a programmatic API that
enables the site map to be queried. ASP.NET does not require a particular
format for specifying the site map, although it does provide a default choice
that uses an XML-formatted file. The details on how the site map is seralized
can be customized because the site navigation feature of ASP.NET 2.0 uses the
provider model. The provider model, which was discussed in detail in A Look at
ASP.NET 2.0's Provider Model, enables developers to customize the inner
workings of a particular ASP.NET subsystem as long as they keep the
forward-facing API the same.
In short, you can use ASP.NET 2.0's default XML-based method for specifying
your website's site map or, with a bit of code, you can use your existing,
custom method, or some other approach. (This article will examine using the
default technique (the XML-based site map); a future article in this series
will look at how to customize the site navigation provider.)
In addition to providing a customizable means to specify site structure,
ASP.NET 2.0 ships with a number of navigation Web controls that make displaying
the site map as easy as dragging and dropping a control onto your ASP.NET page:
SiteMapPath - displays a breadcrumb, showing the end user where he is
relative to the site's structure. For example, when visiting the Novels section
on Amazon.com, a breadcrumb would display something like: Home > Books >
Novels. TreeView - displays the site's structure in a collapsible
tree. Menu - displays the site's structure using a menu.
When displaying site navigation, both the TreeView and Menu controls use the
SiteMapDataSource control to read the contents of the site map. (.. to be
continued) read online at
http://www.aravinda.in/Tech.aspx?Title=UsingSiteMap&WebPage=tech\dotnet\usingSiteMap.htm
www.aravinda.in
www.typepad.aravinda.in -multipurpose Image Editor for Indian Regional
Languages
(hindhi)??????: www.hindhi.aravinda.in
(Kannada)????? : www.kannada.aravinda.in
(telugu)?????? : www.telugu.aravinda.in
(sanskrit, devangari)???????? : www.sanskrit.aravinda.in
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]