Click here to Skip to main content
Licence 
First Posted 5 Mar 2007
Views 30,367
Bookmarked 17 times

Dynamic sitemap in asp.net 2.0

By | 5 Mar 2007 | Article
move,delete ,insert child to your sitemap file

Introduction

sitemap file is xml file that microsoft use this file in asp.net 2.0 ,for developer more challenging feature of this file is using in dynamic way.I wrote a lot of articles in internet but all of them focusing on xml and sql server. Now I use XMLDOMOBJECT for dynamic sitemap.

Using the code

The following list summarizes the steps to use Dynamic sitemap file:

  1. Configure your ASP.NET application
  2. Load default.aspx file
  3. Add first child(shows in Just for the First Time)
  4. then add nodes and your own child

If you know that sitemap file has very nice stracture.for the first time you have root then again first child after that start with nodes and children,that means root start in fact in second tag.

<p style="BACKGROUND: #fbedbb"><?xml version="1.0" encoding="utf-8"?><br /><br /><siteMap> <br /><siteMapNode url="" title="" description=""> <br />... <br />... <br />... <br /></siteMapNode> <br /></siteMap><br /></p>

I write with XmlDomObject For the first time that you can add <sitemap> tags then add children and other nodes.

Summary

Dynamic web.sitemap with XmlDomobject is really nice and challenging method for whom want to make dynamic site.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

hamidreza Talebi

Web Developer

Iran (Islamic Republic Of) Iran (Islamic Republic Of)

Member

I am IT Engineering and I write web application for 3 years.I love writing web programming such as asp.net,php and java Script.I am know work on XML a new technology for web developer.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberRyan Leeder19:18 3 Nov '09  
Generali want to learn asp.net Pinmembers_i_m_a_r20:21 30 Jan '09  
GeneralExplanation PinmemberLeeRoberts5:40 23 Oct '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 6 Mar 2007
Article Copyright 2007 by hamidreza Talebi
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid