<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Asp.Net Team's Weblog &#187; web.config</title>
	<atom:link href="http://aspnetteam.wordpress.com/category/webconfig/feed/" rel="self" type="application/rss+xml" />
	<link>http://aspnetteam.wordpress.com</link>
	<description>Another ASP.NET Weblog</description>
	<lastBuildDate>Thu, 03 Sep 2009 11:54:33 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='aspnetteam.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ea6345954410fcd98c45fab481df7cbf?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Asp.Net Team's Weblog &#187; web.config</title>
		<link>http://aspnetteam.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aspnetteam.wordpress.com/osd.xml" title="Asp.Net Team&#8217;s Weblog" />
		<item>
		<title>The WEB.CONFIG File</title>
		<link>http://aspnetteam.wordpress.com/2008/12/16/the-webconfig-file/</link>
		<comments>http://aspnetteam.wordpress.com/2008/12/16/the-webconfig-file/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 15:17:59 +0000</pubDate>
		<dc:creator>Frank Adams</dc:creator>
				<category><![CDATA[web.config]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[namespaces]]></category>

		<guid isPermaLink="false">http://aspnetteam.wordpress.com/?p=82</guid>
		<description><![CDATA[I was working on improving an application the other day and I noticed something in the web.config file.  I do not know if it is by design just in VS 2008 or if it was included in VS 2005 but you can include all your Imports in the web.config file. I have not looked into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aspnetteam.wordpress.com&blog=4774049&post=82&subd=aspnetteam&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;font-family:Consolas;">I was working on improving an application the other day and I noticed something in the web.config file.<span>  </span>I do not know if it is by design just in VS 2008 or if it was included in VS 2005 but you can include all your <span style="color:blue;">Imports </span>in the web.config file. I have not looked into how much this will cost the application to include everything all the time even though it is not being used but it makes for cleaner code. Here is what needs to be done:</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;font-family:Consolas;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;"><span style="font-size:12pt;color:blue;">&lt;</span><span style="font-size:12pt;color:#993300;">configuration</span><span style="font-size:12pt;color:blue;">&gt;</span><span style="font-size:12pt;"></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>            </span><span style="color:blue;">&lt;</span><span style="color:#993300;">system.web</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">pages</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">namespaces</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">clear/</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">add namespace=”</span><span style="color:blue;">System</span><span style="color:#993300;">”/</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">add namespace=”</span><span style="color:blue;">System.Collection</span><span style="color:#993300;">”/</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:green;">&lt;!—user added namespaces below </span></span></span><span style="font-size:12pt;color:green;font-family:Wingdings;"><span>à</span></span><span style="font-size:12pt;color:green;"></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">add namespace=”</span><span style="color:blue;">System.Data</span><span style="color:#993300;">”/</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">add namsspace=”</span><span style="color:blue;">System.Data.SqlClient</span><span style="color:#993300;">”/</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>                        </span><span style="color:blue;">&lt;</span><span style="color:#993300;">/namespaces</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>            </span><span style="color:blue;">&lt;</span><span style="color:#993300;">/pages</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>            </span>………</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;"><span style="font-family:Times New Roman;"><span>            </span><span style="color:blue;">&lt;</span><span style="color:#993300;">/system.web</span><span style="color:blue;">&gt;</span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-family:Times New Roman;"><span style="font-size:12pt;color:blue;">&lt;</span><span style="font-size:12pt;color:#993300;">/configuration</span><span style="font-size:12pt;color:blue;">&gt;</span><span style="font-size:12pt;"></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;font-family:Consolas;"> </span></p>
<p><span style="font-size:12pt;font-family:Consolas;">As you can see by the above example, I separate the auto generated namespaces from the ones that I add. That is not required but I do it for my own benefit. Also there may be a place where one can indicate which namespaces to include by default. I have not found that yet. If I do I will let you know. As always, if there are any questions or suggestions, they are welcome. Thank you.</span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aspnetteam.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aspnetteam.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aspnetteam.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aspnetteam.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aspnetteam.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aspnetteam.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aspnetteam.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aspnetteam.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aspnetteam.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aspnetteam.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aspnetteam.wordpress.com&blog=4774049&post=82&subd=aspnetteam&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aspnetteam.wordpress.com/2008/12/16/the-webconfig-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e7de40145b3f1678a34b54c67d2c8e44?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Frank</media:title>
		</media:content>
	</item>
	</channel>
</rss>