<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Can you help an asp.net idjit to get her old server side includes to work?</title>
	<link>http://ask.metafilter.com/43496/Can-you-help-an-aspnet-idjit-to-get-her-old-server-side-includes-to-work/</link>
	<description>Comments on Ask MetaFilter post Can you help an asp.net idjit to get her old server side includes to work?</description>
	<pubDate>Wed, 02 Aug 2006 10:29:48 -0800</pubDate>
	<lastBuildDate>Wed, 02 Aug 2006 10:29:48 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Can you help an asp.net idjit to get her old server side includes to work?</title>
		<link>http://ask.metafilter.com/43496/Can-you-help-an-aspnet-idjit-to-get-her-old-server-side-includes-to-work</link>	
		<description>How do I make server side includes practical in .aspx pages? &lt;br /&gt;&lt;br /&gt; So, I am converting my basic .html template over to a .aspx page by request. I have much of the framework of the page in various includes that are held in a folder called includes on the main folder level. Every webpage in my site, regardless of what folder it is in or on what level it currently resides, references these files successfully. I have been unable to make these includes work in my new .aspx template unless they are in the same folder as the template. After doing some research, the only information I found told me that I can&apos;t have an .aspx file reference an include with a path that has to go to a level above -  that an .aspx page can only include files in the same directory or in levels below. If this is true, I am going to have MANY repeats of these includes, we are talking over well over 40. This sort of defeats the purpose of includes. The techy guy sitting next to me says he can write a script to update these includes but why even have includes if this is possible, why not just run a script to update every page? All I know is this is beyond me and I am feeling pretty low about all of this.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.43496</guid>
		<pubDate>Wed, 02 Aug 2006 09:33:23 -0800</pubDate>
		<dc:creator>Foam Pants</dc:creator>
		
			<category>asp.net</category>
		
			<category>serversideincludes</category>
		
	</item> <item>
		<title>By: yerfatma</title>
		<link>http://ask.metafilter.com/43496/Can-you-help-an-aspnet-idjit-to-get-her-old-server-side-includes-to-work#668150</link>	
		<description>&lt;em&gt;that an .aspx page can only include files in the same directory or in levels below&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
This is true by default is IIS, but can be shut off by enabling &quot;Parent Paths&quot; in the site&apos;s configuration. You can pull off old-school ASP style includes (e.g., &amp;lt;!--#include file=&quot;../includes/header.asp&quot;--&amp;gt;), but the recommended approach is to make your includes into UserControls. A &lt;a href=&quot;http://msdn.microsoft.com/vstudio/express/&quot;&gt;free copy of Visual Studio Express&lt;/a&gt; will be helpful if you decide to pursue that angle. You make a reference to the user control with a &amp;lt;%@ Register &amp;gt; tag at the top of the file and then include it later on down the page.&lt;br&gt;
&lt;br&gt;
Alternatively, you could look at the MasterPage approach, where you can create a whole template (i.e., header, footer, whatever else) and just reference it in each content page. Done right, it&apos;s probably easier than includes.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.43496-668150</guid>
		<pubDate>Wed, 02 Aug 2006 10:29:48 -0800</pubDate>
		<dc:creator>yerfatma</dc:creator>
	</item><item>
		<title>By: Foam Pants</title>
		<link>http://ask.metafilter.com/43496/Can-you-help-an-aspnet-idjit-to-get-her-old-server-side-includes-to-work#668882</link>	
		<description>I like this idea of a master page. Do you think this is something I could pick up and work with? I was given a copy of Visual Studio but I don&apos;t know any visual basic beyond how to recognize some of the basic types of syntax. I do have some reference manuals. I will have to look through them and do some online searching to see what I can drum up about master pages. Thanks for the idea.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.43496-668882</guid>
		<pubDate>Thu, 03 Aug 2006 00:01:24 -0800</pubDate>
		<dc:creator>Foam Pants</dc:creator>
	</item><item>
		<title>By: yerfatma</title>
		<link>http://ask.metafilter.com/43496/Can-you-help-an-aspnet-idjit-to-get-her-old-server-side-includes-to-work#669328</link>	
		<description>No better place to start then &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/wtxbf3hh.aspx&quot;&gt;here&lt;/a&gt;, I suppose.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.43496-669328</guid>
		<pubDate>Thu, 03 Aug 2006 11:20:42 -0800</pubDate>
		<dc:creator>yerfatma</dc:creator>
	</item>
	</channel>
</rss>
