A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.
I'm working on a .NET web application, and we need a way to dynamically generate customers sitemap.xml pages. In Java, you'd simply map a servlet to sitemap.xml, change the content type, and dynamically generate/retrieve whatever you want to spit out at requesting client.
Is there a way to do something similar in asp.net? I've thought of a few possibilities, but i'm curious what the 'best practice' is. Thanks in advance.
A simpler way would be to have an .aspx page with no markup and in the code behind, change the response type then emit your xml using Response.Write.
Friday, April 07, 2006
Neither HttpHandlers nor an aspx page would help, because sitemap.xml is read directly from the disk - it is not requested from IIS.
You need to write a custom site map provider. Check this: http://fredrik.nsquared2.com/viewpost.aspx?PostID=272&showfeedback=true .
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz