By the time you have finished checking that it hasn't done something stupid and that you haven't got pages you dont want in there (like your confirmation pages from form submits or shopping carts) or that it hasn't missed ones you do want (like sites using
url rewritters).
CeOfFuture
Member
217 Points
382 Posts
How to create sitemap by using microsoft visual studio 2008
Jan 18, 2010 02:17 PM|LINK
is there any way to create a site map automaticly by using microsoft visual studio 2008
if it just create an index for static pages it is enough
dont need dynamic pages
Url routing : MonsterDex
rtpHarry
All-Star
56620 Points
8958 Posts
Re: How to create sitemap by using microsoft visual studio 2008
Jan 18, 2010 02:29 PM|LINK
No there isn't anything like that built in to visual studio.
You can generate a list of all the aspx files by going to the project root in a cmd window and using dir:
The /b means bare results (not full paths with extra info)
/s is subdirectories as well as current
*.aspx means only match files with .aspx extension
> list.txt means redirect the output to a file rather than displaying it on screen
CeOfFuture
Member
217 Points
382 Posts
Re: How to create sitemap by using microsoft visual studio 2008
Jan 18, 2010 04:09 PM|LINK
so lame to visual studio
Url routing : MonsterDex
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: How to create sitemap by using microsoft visual studio 2008
Jan 18, 2010 04:22 PM|LINK
I guess so since it won't do your work for you!
NC...
rtpHarry
All-Star
56620 Points
8958 Posts
Re: How to create sitemap by using microsoft visual studio 2008
Jan 18, 2010 10:51 PM|LINK
I have seen sitemap providers which base their index from the file system before... you could probably find a tutorial for that.
Also if you want to get your wallet out here is a web.sitemap generator which will also make you a google friendly sitemap.xml file:
Trouble is it would probably do it badly :P
By the time you have finished checking that it hasn't done something stupid and that you haven't got pages you dont want in there (like your confirmation pages from form submits or shopping carts) or that it hasn't missed ones you do want (like sites using url rewritters).
malcolms
All-Star
18687 Points
3124 Posts
MVP
Re: How to create sitemap by using microsoft visual studio 2008
Jan 19, 2010 10:05 AM|LINK
You should have a read of an article I did last year. It was about how to dynamically create a sitemap for your website using LINQ.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=281
rtpHarry
All-Star
56620 Points
8958 Posts
Re: How to create sitemap by using microsoft visual studio 2008
Jan 19, 2010 10:21 PM|LINK
That could very well have been the tutorial I was referring to [:)]
malcolms
All-Star
18687 Points
3124 Posts
MVP
Re: How to create sitemap by using microsoft visual studio 2008
Jan 19, 2010 10:43 PM|LINK
Thanks mate! :)