Click here to Skip to main content
Click here to Skip to main content

Dynamic sitemap in asp.net 2.0

, 5 Mar 2007
Rate this:
Please Sign up or sign in to vote.
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"?>

<siteMap> 
<siteMapNode url="" title="" description=""> 
... 
... 
... 
</siteMapNode> 
</siteMap>
</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

Share

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 asp.net,php and java Script.I am know work on XML a new technology for web developer.

Comments and Discussions

 
GeneralMy vote of 2 PinmemberChandraShekar.SK5-Jul-12 0:28 
GeneralMy vote of 1 PinmemberRyan Leeder3-Nov-09 19:18 
Generali want to learn asp.net Pinmembers_i_m_a_r30-Jan-09 20:21 
GeneralExplanation PinmemberLeeRoberts23-Oct-07 5:40 

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.

| Advertise | Privacy | Mobile
Web01 | 2.8.141029.1 | Last Updated 6 Mar 2007
Article Copyright 2007 by hamidreza Talebi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid