Click here to Skip to main content
15,885,244 members
Articles / Programming Languages / Visual Basic
Article

Dynamic sitemap in asp.net 2.0

Rate me:
Please Sign up or sign in to vote.
2.26/5 (11 votes)
5 Mar 2007 46.5K   1K   19   4
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


Written By
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 Pin
Chandrashekar SK5-Jul-12 0:28
Chandrashekar SK5-Jul-12 0:28 
GeneralMy vote of 1 Pin
NoCodeMonkey3-Nov-09 19:18
NoCodeMonkey3-Nov-09 19:18 
Generali want to learn asp.net Pin
s_i_m_a_r30-Jan-09 20:21
s_i_m_a_r30-Jan-09 20:21 
GeneralExplanation Pin
LeeRoberts23-Oct-07 5:40
LeeRoberts23-Oct-07 5: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.