Wednesday, May 28, 2008

Site Navigation using SiteMapPath control in ASP.Net 2.0

This article explains how to do site navigation for your web site

Introduction

Asp.net 2.0 has cool control for site navigation is SiteMapPath control.You can find SiteMapPath control in the Toolbox under the Navigation category.Using this control you can find where are you in this website.
First Add Web.sitemap in your project.Web.Sitemap has Title,Url and description attributes.like this,

Site Map

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default.aspx" title="Home" description="Home">
<siteMapNode url="~/InsideUs.aspx" title="Inside Us" description="">
<siteMapNode url="~/VisionMission.aspx" title="Vision & Mission" description=""/>
<siteMapNode url="~/Culture.aspx" title="Culture" description=""/>
<siteMapNode url="~/Trust.aspx" title="Trust" description=""/>
<siteMapNode url="~/BusinessPriciples.aspx" title="Business Principles" description=""/>
</siteMapNode>
<siteMapNode url="~/contactus.aspx" title="Contact US" description="Contact US"/>
<siteMapNode url="~/aboutus.aspx" title="About Us" description="About Us"/>
</siteMapNode>
</siteMap>

Master Page for the application

Now add the master page in your project and then drag and drop the SiteMapPath control.like this,

<asp:SiteMapPath ID="SiteMapPath1" runat="server" Font-Names="Verdana" Font-Size="0.8em" PathSeparator=" : ">
<PathSeparatorStyle Font-Bold="True" ForeColor="#5D7B9D" />
<CurrentNodeStyle ForeColor="#333333" />
<NodeStyle Font-Bold="True" ForeColor="#7C6F57" />
<RootNodeStyle Font-Bold="True" ForeColor="#5D7B9D" />
</asp:SiteMapPath>

The SiteMapPath control will automatically bind itself to the Web.sitemap file.If you use default SiteMap provider will

automatically be used by SiteMapPath control and also you can set the SiteMapProvider property of SiteMapPath control.

Now when you are on Culture.aspx page then SiteMapPath control display like, Home : Inside Us : Culture
So you can easily go from "Culture" page to "Home" page or "Inside Us" page (root node) using SiteMapPath Control.

Here,I set PathSeparator property of SiteMapPath control to : by default is >.

PathDirection property use for in which direction you want to display link.CurrentToRoot display link start from current node to Parent node like Culture : Inside Us : Home.And other is RootToCurrent display link start from Parent node to Current node like Home : Inside Us : Culture.

73 comments:

  1. hi dudes. I'm actually into shoes and I had been digging as far as something that particular brand. The prices due to the fact that the sneakers are around 350 pounds on every site. But for all I found this location selling them as a remedy for half price. I in reality want these [url=http://www.shoesempire.com]prada sneakers[/url]. I will probably purchase those. what is your opinion?

    ReplyDelete
  2. good day bros. I'm actually into shoes and I was digging as far as something that singular make. The prices seeking the sneakers were approximately 240 dollars on every site. But finally I base this area selling them someone is concerned half price. I absolutely love these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will definetly buy these. what can you tell me about these?

    ReplyDelete
  3. Ahaa, its fastidious discussion concerning this paragraph at this place
    at this website, I have read all that, so now me also commenting at this place.
    Feel free to surf my homepage christian louboutin sales shop

    ReplyDelete
  4. Appreciating the time and effort you put into your blog and detailed
    information you present. It's nice to come across a blog every once in a while that isn't the same out of
    date rehashed information. Wonderful read! I've saved your site and I'm including your RSS feeds to my Google account.
    Have a look at my site :: http://www.buycanadagooseoutlet.info/

    ReplyDelete
  5. I loved as much as you'll receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this increase.
    Feel free to surf my blog post :: Canada Goose outlet

    ReplyDelete
  6. I used to be suggested this blog via my
    cousin. I am no longer positive whether this publish is written by means of him as no one
    else recognize such unique about my trouble.
    You are incredible! Thank you!
    Review my homepage : Canada Goose

    ReplyDelete
  7. When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get several emails with the same comment.
    Is there any way you can remove people from that service?
    Bless you!
    Also visit my web-site : Canada Goose

    ReplyDelete
  8. Once we evaluate the purpose of the idea of love, not just in regards to an amorous relationship having one more, although as a experience that's engendered once you have miltchmonkey a greater romance on your own far too - or even for a sensation of increased unity with your family and also the human race , then it gets to be much more crystal clear that every one any individual needs in your life will be like.

    ReplyDelete
  9. Does your site have a contact page? I'm having trouble locating it but, I'd like to shoot you an e-mail.
    I've got some ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it develop over time.
    My weblog ... モンクレール ダウン

    ReplyDelete
  10. Magnificent beat ! I wish to apprentice even as you amend your site,
    how could i subscribe for a blog website? The account aided
    me a applicable deal. I had been a little bit acquainted of this your
    broadcast offered vivid transparent concept

    Also visit my web page - web page

    ReplyDelete
  11. Your style is very unique compared to other people I have read stuff from.
    I appreciate you for posting when you've got the opportunity, Guess I'll just book mark this page.


    My homepage; オークリー サングラス

    ReplyDelete
  12. Incredible points. Sound arguments. Keep up the great spirit.


    Here is my web site :: レイバンサングラス

    ReplyDelete
  13. I am really grateful to the holder of this web site who
    has shared this wonderful post at at this place.


    my webpage オークリー ゴーグル レディース

    ReplyDelete
  14. What's up colleagues, its wonderful paragraph regarding tutoringand fully explained, keep it up all the time.

    My weblog ... レイバン激安

    ReplyDelete
  15. It's going to be end of mine day, except before finish I am reading this great paragraph to increase my knowledge.

    Also visit my web-site - オークリーメガネ

    ReplyDelete
  16. Remarkable! Its truly amazing post, I have got much clear idea regarding
    from this article.

    Stop by my blog post: 激安レイバン

    ReplyDelete
  17. Hi, Neat post. There is a problem together with your website in internet explorer,
    may check this? IE still is the marketplace chief and a
    good section of other folks will miss your excellent writing due to this problem.


    My blog post: オークリー ゴーグル

    ReplyDelete
  18. I like the valuable information you provide in your articles.
    I'll bookmark your weblog and check again here regularly. I'm quite sure I'll learn many new stuff right here! Good luck for the next!

    my web page - レイバンサングラス

    ReplyDelete
  19. Wow, this post is nice, my younger sister is analyzing such things,
    so I am going to inform her.

    Visit my webpage - オークリー アウトレット

    ReplyDelete
  20. Good blog post. I definitely love this site.
    Keep writing!

    Also visit my web site オークリー アウトレット

    ReplyDelete
  21. Heya i'm for the primary time here. I found this board and I to find It really helpful & it helped me out a lot. I'm hoping to
    present one thing again and aid others like you aided me.

    Also visit my weblog レイバンサングラス

    ReplyDelete
  22. Ahaa, its nice dialogue regarding this article at this place at
    this website, I have read all that, so now me also commenting here.


    Check out my website :: adventistmembers.com

    ReplyDelete
  23. With havin so much content and articles do you ever run into any issues of
    plagorism or copyright violation? My website has
    a lot of exclusive content I've either authored myself or outsourced but it looks like a lot of it is popping it up all over the web without my authorization. Do you know any techniques to help stop content from being ripped off? I'd really appreciate it.


    Also visit my homepage; www.spotlightmywork.com

    ReplyDelete
  24. It's hard to come by experienced people on this subject, however, you seem like you know what you're talking about!

    Thanks

    Here is my weblog :: レイバンサングラス

    ReplyDelete
  25. Hello! Would you mind if I share your blog with my twitter group?
    There's a lot of folks that I think would really appreciate your content. Please let me know. Cheers

    My web site ... rayban サングラス

    ReplyDelete
  26. Its like you learn my thoughts! You seem to grasp so much about this, like you
    wrote the e book in it or something. I believe that you just could do
    with some % to drive the message house a little bit, but instead of that, that is wonderful blog. A fantastic read. I will certainly be back.

    Feel free to visit my site :: プラダ バッグ

    ReplyDelete
  27. Hey there! Do you use Twitter? I'd like to follow you if that would be okay. I'm absolutely enjoying your blog and look forward to new updates.


    Here is my blog post ... オークリー サングラス

    ReplyDelete
  28. I know this web page gives quality dependent posts and other data, is there any other web site which presents these
    information in quality?

    Here is my blog; モンスター イヤホン

    ReplyDelete
  29. I think the admin of this website is actually working hard in favor of his web site, for the reason that here every material is quality based stuff.


    Also visit my page: ジョーダン 靴

    ReplyDelete
  30. 彼らは重要な
    ファイルを運ぶ
    ことができるよう
    にする必要がありますメイクアップと
    ハンドバッグは実用的でな
    ければならないことを意味し
    すべての最新のビジネスハ
    イテクのもの

    Have a look at my homepage: miumiu バッグ

    ReplyDelete
  31. ファクトリーア
    ウトレットのショッピングは多く
    の靴とバッグ買
    い物好きのため
    の非常に楽しい経験であるように
    美しい観光スポットの上にフィレンツェ
    トスカーナイタリア
    の特にアウトレットモールで
    の靴とバッグ買い物好き優秀なショ
    ッピング冒険を提供

    My blog - ミュウミュウ バッグ

    ReplyDelete
  32. Historically, you will quickly several such issues attributable to Nike.
    Try your local Nike Store on Twit for launch news and frequent
    posts. Possibilities product is of top quality but not involved with high price?

    Several good quality running sneakers is the single most important item a sprinter can buy.

    http://wiki.bettybotta.ru/wiki/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:
    KelseyGre

    ReplyDelete
  33. ステップ は インターネット上 ショップ に 喜びを、インターネット上 購入
    知識 プレイボーイ ネックレス の みんな。 チョークを使用することができます を排除 ティファニー のオーストラリアオープンハートからの汚れ。 それがすることができます めった 方法 も 遅く デモ
    は 長い 脚。 Deckers の星になって、スタイリッシュな 市場。第三に、すすぎの履物 様々 な 色 内 は 公平な 方法。 で、正確な 時間彼らは 正しく 提供 ティファニー のペア ネックレス アンダーソンに
    少し 娘Louis Vuitton

    Here is my blog: ティファニー ペアリング

    ReplyDelete
  34. It's really a nice and helpful piece of information. I am happy that you shared this helpful information with us. Please stay us informed like this. Thank you for sharing.

    my web page - monster beats

    ReplyDelete
  35. Thanks for sharing your thoughts about monster ヘッドホン.
    Regards

    Feel free to surf to my blog - モンスター ヘッドホン

    ReplyDelete
  36. Superb post however I was wanting to know if you could write a litte more on this subject?
    I'd be very thankful if you could elaborate a little bit further. Appreciate it!

    Feel free to visit my weblog; schestowitz.com

    ReplyDelete
  37. Hi, after reading this remarkable piece of writing i am as well glad
    to share my knowledge here with mates.

    Feel free to visit my page ... monster beats

    ReplyDelete
  38. Hey there this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I'm starting a blog soon but have no coding skills so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

    Feel free to visit my blog - http://www.monsterbeatsoutlet-sales.com/

    ReplyDelete
  39. Appreciation to my father who stated to me concerning this website, this weblog is truly amazing.


    Visit my web-site; ジョーダン

    ReplyDelete
  40. 理想的な靴のペ
    アを使用するとより簡単にその目標を得
    ることができま


    Also visit my weblog :: miumiu 新作

    ReplyDelete
  41. したがって空の
    旅は生態学的に列車
    の旅として損傷のほぼ
    倍である

    Here is my web-site - ミュウミュウ アウトレット

    ReplyDelete
  42. You can maybe that or have the traditional template designed golf courses shoe i.

    e. Nonetheless , it can also be very satisfying and
    exciting. They call it Amazon Man made fiber.
    They display a great range of shoes sneakers suited for all sports.
    http://police.vmn123.com/forum/profile.php?id=146418

    ReplyDelete
  43. しませんそれらを浸し、水これはそれらを変形できるよう。ルイヴィトン のブートのおかげでメーカー、ルイヴィトン のオーストラリア我々今できますから喜びを得るベスト-品質バッグします。それにもかかわらず、あなた それにもかかわらず 得ることができます 素晴らしい ペア の devoid 速報あなた 金融機関 アカウント。 ドレッシー ただし
    を持つルルドは、3 ウェッジヒール インチ。

    Have a look at my web blog ルイヴィトン公式サイト

    ReplyDelete
  44. You really make it seem so easy with your presentation but
    I find this matter to be really something that I think I would never understand.

    It seems too complicated and extremely broad for me.
    I am looking forward for your next post, I'll try to get the hang of it!

    Feel free to surf to my blog post ... ルブタン 店舗

    ReplyDelete
  45. What i do not realize is in truth how you're not really a lot more well-favored than you may be right now. You're so intelligent.
    You know thus significantly on the subject of this topic, produced me individually consider it from so many
    varied angles. Its like women and men are not involved unless it is one thing to do with Woman gaga!
    Your own stuffs outstanding. All the time handle it
    up!

    my web blog - http://rolexmans.livejournal.com/570.html

    ReplyDelete
  46. This article will help the internet people
    for building up new blog or even a weblog from start to end.


    my web site ... ルブタン

    ReplyDelete
  47. I visited many web pages however the audio feature for audio songs present
    at this website is really superb.

    Feel free to visit my weblog ... モンスター イヤホン

    ReplyDelete
  48. Thankfulness to my father who stated to me on the topic of this webpage, this web site is in fact awesome.


    Here is my web blog ... モンスタービーツ

    ReplyDelete
  49. Woah! I'm really loving the template/theme of this site. It's simple, yet effective.
    A lot of times it's hard to get that "perfect balance" between user friendliness and appearance. I must say you have done a awesome job with this. Additionally, the blog loads extremely quick for me on Firefox. Superb Blog!

    Here is my webpage; エアジョーダン

    ReplyDelete
  50. each time i used to read smaller articles which also clear their
    motive, and that is also happening with this paragraph which I am
    reading at this place.

    Also visit my blog post ... エアジョーダン

    ReplyDelete
  51. This article is truly a good one it helps new internet people, who are wishing for blogging.


    my site - ルブタン

    ReplyDelete
  52. Fantastic site. A lot of helpful info here. I am sending it to several friends
    ans additionally sharing in delicious. And certainly, thanks in your
    sweat!

    Have a look at my site: ジョーダン

    ReplyDelete
  53. I believe that is among the such a lot vital information for me.
    And i am satisfied reading your article. However should remark on few basic
    issues, The website taste is ideal, the articles is actually nice : D.
    Excellent task, cheers

    My web page - エアジョーダン

    ReplyDelete
  54. Hi there I am so glad I found your site, I really found you by
    accident, while I was looking on Aol for something else, Nonetheless I am here now and would just like to say thanks for a fantastic
    post and a all round entertaining blog (I also love the theme/design), I don't have time to browse it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read much more, Please do keep up the excellent job.

    Also visit my web blog ... Replica Watches

    ReplyDelete
  55. It's actually a nice and useful piece of information. I am happy that you just shared this helpful information with us. Please keep us informed like this. Thanks for sharing.

    My website コーチ アウトレット

    ReplyDelete
  56. Hello! This is kind of off topic but I need some advice from an established blog.
    Is it very hard to set up your own blog? I'm not very techincal but I can figure things out pretty fast. I'm thinking about making
    my own but I'm not sure where to start. Do you have any points or suggestions? Appreciate it

    Here is my web page ... プラダバッグ

    ReplyDelete
  57. Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn't show up. Grrrr... well I'm not writing all
    that over again. Anyhow, just wanted to say fantastic blog!



    My web-site ジョーダン

    ReplyDelete
  58. Great delivery. Solid arguments. Keep up the good work.



    Also visit my site :: miu miu 財布

    ReplyDelete
  59. I have read a few just right stuff here. Definitely
    worth bookmarking for revisiting. I surprise how so much effort you
    set to create this kind of fantastic informative
    web site.

    Here is my website: hypnoticblend.blogspot.com

    ReplyDelete
  60. you are actually a just right webmaster. The web site loading velocity is incredible.
    It seems that you're doing any distinctive trick. Furthermore, The contents are masterpiece. you have done a magnificent process on this matter!

    my site - モンスター ヘッドホン

    ReplyDelete
  61. My programmer is trying to persuade me to move to .net from
    PHP. I have always disliked the idea because of the costs.
    But he's tryiong none the less. I've been using Movable-type on a number of websites for about a year and am concerned about
    switching to another platform. I have heard great things about blogengine.
    net. Is there a way I can transfer all my wordpress posts into
    it? Any help would be greatly appreciated!

    Feel free to surf to my web page - rayban サングラス

    ReplyDelete
  62. Keep on writing, great job!

    Also visit my page; アバクロンビー

    ReplyDelete
  63. Good day! This is kind of off topic but I need some help from
    an established blog. Is it tough to set up your own blog?
    I'm not very techincal but I can figure things out pretty quick. I'm thinking about creating my own but I'm not sure where to start. Do you have any tips or suggestions? Appreciate it

    My page :: トリーバーチ財布

    ReplyDelete
  64. Hello fantastic website! Does running a blog like this
    take a great deal of work? I've absolutely no knowledge of programming however I had been hoping to start my own blog in the near future. Anyways, if you have any suggestions or tips for new blog owners please share. I understand this is off subject but I simply had to ask. Cheers!

    Feel free to visit my homepage; モンスタービーツ

    ReplyDelete
  65. Its like you read my mind! You seem to know a lot about
    this, like you wrote the book in it or something. I think that you can do with a few pics
    to drive the message home a bit, but instead of that, this is great blog.
    A great read. I will definitely be back.

    Feel free to visit my blog; monster beats

    ReplyDelete
  66. This web site definitely has all the information I needed concerning this subject and didn't know who to ask.

    my web page: http://philskindle.blogspot.fr

    ReplyDelete
  67. That is very attention-grabbing, You're a very professional blogger. I have joined your feed and sit up for in quest of extra of your wonderful post. Also, I have shared your site in my social networks

    My site - トリーバーチバッグ

    ReplyDelete
  68. The point οf doing this is to aԁd unique
    content that is keyword rіch. A brоken link іs nоt good foг
    аny wеbsitе busіneѕѕ and definitelу bad
    for all affiliate mаrkеters. Theгe is a nеed to ensurе that οne’s
    ωebsitе iѕ nοt аmong
    the unfогtunatе many that are alwaуѕ ignοred duгing searches.


    Ϻу homepаge :: what is seo search optimization

    ReplyDelete

  69. History Calendar

    those who are waiting for the second part of the Historic Hotels in Lookout Mountain, I have to disappoint you. I promise you that it will be published in my column of July, which will appear on the last Wednesday in July. I need a little more time to research, as it could, in June.

    Stanton House Secret Thestereoscopic im [url=http://www.burkeandthomas.com/wp/4t2cari/]white nike air max 2013 [/url] ages (below) came to me some months ago Picnooga Matthew Miller, a young collector of rare vintage images of Chattanooga. At that time, he had a view of the roof of the hotel CRUTCHFIELD before the house, which was later attributed to a house in the southwest corner of Broad and read for Ninthstreets (Martin Luther King Boulevard). Even with my limited knowledge of the 1860 Chattanooga, massive lack of competition, which is opposite the hotel and the location of Lookout Mountain and Cameron Hill in one of the photos has me confused. CRUTCHFIELD also had an open house with gable roof, which made it almost impossible to stand and take a photo of the plane. And the balcony railing and wooden railing in the direction of the shot would have been disclosed. The cameras are quite large and complex back in the day, and bending a few shots more difficult and requi [url=http://www.burkeandthomas.com/wp/otr0gd6mec/]nike air max 2011 leather [/url] res care and planning.
    She was
    decorative iron cresting in the foreground. Had at least a three-story building highor more. I have a picture on a wooden stock (see below) archive collection, which can be found in the state of Tennessee Chattanooga circa 1900 photo [url=http://www.burkeandthomas.com/wp/y631zs6/]black on black nike air max [/url] of attributes.

    After some digging and deduction, it is my guess that this material is taken from the roof of the Stanton House or 1870 [url=http://www.burkeandthomas.com/wp/wp3xu9/]mens nike air max 360 [/url] or very early 1880s. The hotel is still at the terminal station, or, as you probably know, this is the Chattanooga Choo Choo. Stanton House was built in 1871 by John C. Stanton, president of the Alabama and Chattanooga Railroad. At a cost of $ 100,000, it was a great size and luxury and was the first building in Chattanooga, early telephone in the lobby of the show. Unfortunately Chattanooga, sl [url=http://www.burkeandthomas.com/wp/qiur1/]white nike air max mens [/url] owly moving southward expansion led to the financia [url=http://www.burkeandthomas.com/wp/a20grpm/]nike air max heel [/url] l collapse, the hotel and the Alabama and Chattanooga Railroad Will Stanton nonsense that eventually went bankrupt. Destroyed in 1905, and the terminal station was built on the former site of the 1909.

    PhotosYou paint can lid is a game of little pointy deck of Stanton in the attic of the house. This is the southwest corner looking down at home. In this photo you can see the geographical relationships and how they correspond to the area of ​​Lookout Mountain Choo Choo. Also, you can see the picket fence around the hotel and the Market Street i [url=http://www.burkeandthomas.com/wp/haqoyw/]nike boys air max 2013 [/url] ntersection with Montgomery Street, which was later renamed the main street.



    [url=new nike air max 2014]http://www.burkeandthomas.com/wp/m9jg9q7i/[/url]
    [url=black nike air max men]http://www.burkeandthomas.com/wp/bey0x4ow3/[/url]
    [url=2013 women nike air max]http://www.burkeandthomas.com/wp/pbskfr5m/[/url]
    [url=air max uk]http://www.burkeandthomas.com/wp/ki94hv73g/[/url]
    [url=shoes nike air]http://www.burkeandthomas.com/wp/k75ydo/[/url]

    ReplyDelete
  70. you want best hotel in gulshan dhaka?
    century park hotel
    is one of the best hotel.

    ReplyDelete
  71. important site c7m04c7u69 gucci replica handbags replica bags online replica bags louis vuitton resource e9b28k5x20 7a replica bags philippines replica bags wholesale gucci replica handbags h6z50m7l43 replica bags karachi

    ReplyDelete