Click here to Skip to main content
13,349,293 members (63,157 online)
Click here to Skip to main content
Add your own
alternative version


18 bookmarked
Posted 5 Mar 2007

Dynamic sitemap in 2.0

, 5 Mar 2007
Rate this:
Please Sign up or sign in to vote.
move,delete ,insert child to your sitemap file


sitemap file is xml file that microsoft use this file in 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.


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


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)
I am IT Engineering and I write web application for 3 years.I love writing web programming such as,php and java Script.I am know work on XML a new technology for web developer.

You may also be interested in...

Comments and Discussions

GeneralMy vote of 2 Pin
ChandraShekar.SK5-Jul-12 1:28
memberChandraShekar.SK5-Jul-12 1:28 
GeneralMy vote of 1 Pin
Ryan Leeder3-Nov-09 20:18
memberRyan Leeder3-Nov-09 20:18 
Generali want to learn Pin
s_i_m_a_r30-Jan-09 21:21
members_i_m_a_r30-Jan-09 21:21 
GeneralExplanation Pin
LeeRoberts23-Oct-07 6:40
memberLeeRoberts23-Oct-07 6:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web01 | 2.8.180111.1 | Last Updated 6 Mar 2007
Article Copyright 2007 by hamidreza Talebi
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid