<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET Weblogs</title><link>http://weblogs.asp.net/</link><description /><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>Office 2010: The Movie</title><link>http://weblogs.asp.net/felipeferreira/archive/2009/07/09/office-2010-the-movie.aspx</link><pubDate>Fri, 10 Jul 2009 01:34:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144258</guid><dc:creator>Felipe Ferreira</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Campanha bacana de marketing da nova versão da suíte do office, vale a pena dar uma olhada:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.office2010themovie.com/"&gt;http://www.office2010themovie.com/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144258" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/felipeferreira/archive/tags/Office/default.aspx">Office</category></item><item><title>Cursos e apostilas de ASP/ASP.NET</title><link>http://www.htmlstaff.org/cursos_e_apostilas/asp_aspnet.php</link><pubDate>Fri, 10 Jul 2009 01:29:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144283</guid><dc:creator>Delicious/tag/asp.net</dc:creator><slash:comments>0</slash:comments><description>curso web de asp.net Read More......(&lt;a href="http://www.htmlstaff.org/cursos_e_apostilas/asp_aspnet.php"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144283" width="1" height="1"&gt;</description></item><item><title>Comparing Two Arrays</title><link>http://weblogs.asp.net/psteele/archive/2009/07/09/comparing-two-arrays.aspx</link><pubDate>Fri, 10 Jul 2009 01:19:18 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144203</guid><dc:creator>PSteele</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I was looking at some old code today that was checking if two byte arrays had the same data in them.&amp;#160; It was a simple loop that compared each element.&amp;#160; I recalled my blog post from November of last year about &lt;a href="http://weblogs.asp.net/psteele/archive/2008/11/24/verifying-collections-arrays-in-ms-unit-testing.aspx" target="_blank"&gt;comparing collections/arrays in MSTest&lt;/a&gt; and thought, &amp;quot;I wonder if LINQ has something similar&amp;quot;?&lt;/p&gt;  &lt;p&gt;As a matter of fact it does!&amp;#160; &lt;a href="http://msdn.microsoft.com/en-us/library/bb909252.aspx" target="_blank"&gt;IEnumerable&amp;lt;T&amp;gt;.SequenceEqual()&lt;/a&gt; does exactly what I was looking for.&amp;#160; By default, it uses the type's default comparer, or you can supply your own.&amp;#160; Very nice!&lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ba4de3da-d7e6-4d2c-8415-2d2c6f169221" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/.NET" rel="tag"&gt;.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/LINQ" rel="tag"&gt;LINQ&lt;/a&gt;&lt;/div&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144203" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/psteele/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/psteele/archive/tags/LINQ/default.aspx">LINQ</category></item><item><title>Notes from a dark corner : Some ASP.NET, IIS and CLR fixes</title><link>http://blogs.msdn.com/dougste/archive/2009/07/09/some-asp-net-iis-and-clr-fixes.aspx</link><pubDate>Fri, 10 Jul 2009 00:53:23 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144121</guid><dc:creator>Delicious/tag/asp.net</dc:creator><slash:comments>0</slash:comments><description>Read More......(&lt;a href="http://blogs.msdn.com/dougste/archive/2009/07/09/some-asp-net-iis-and-clr-fixes.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144121" width="1" height="1"&gt;</description></item><item><title>FIX: Downloading Large Files Causes a Large Memory Loss and Causes the Aspnet_wp.exe Process to Recycle</title><link>http://support.microsoft.com/?scid=kb;en-us;823409&amp;x=6&amp;y=12</link><pubDate>Fri, 10 Jul 2009 00:43:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144122</guid><dc:creator>Delicious/tag/asp.net</dc:creator><slash:comments>0</slash:comments><description>ASP.NET 1.1에 TrsmitFile() 메서드를 추가해주는 핫픽스 Read More......(&lt;a href="http://support.microsoft.com/?scid=kb;en-us;823409&amp;x=6&amp;y=12"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144122" width="1" height="1"&gt;</description></item><item><title>Dynamics CRM - Backup, Restore &amp; Publish Customizations Programmatically</title><link>http://weblogs.asp.net/gayanperera/archive/2009/07/10/dynamics-crm-backup-restore-amp-publish-customizations-programmatically.aspx</link><pubDate>Fri, 10 Jul 2009 00:34:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144091</guid><dc:creator>gperera</dc:creator><slash:comments>0</slash:comments><description>&lt;P mce_keep="true"&gt;Here is a simple class you can use to backup, restore and publish dynamics crm customizations programmatically. Please keep in mind that dynamics crm customizations are additive, which means, if you import a set of customizations lets say a new attribute on the account entity and you restore a backup of the old customizations the new attribute on the account entity that was imported will not be deleted.&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;Usage&lt;/STRONG&gt;&lt;BR&gt;&lt;SPAN style="COLOR: #2b91af"&gt;CrmCustomizations&lt;/SPAN&gt; customizations = &lt;SPAN style="COLOR: blue"&gt;new&lt;/SPAN&gt; &lt;SPAN style="COLOR: #2b91af"&gt;CrmCustomizations&lt;/SPAN&gt;(service);&lt;BR&gt;&lt;BR&gt;You can backup to an xml file or a zip file by calling the Backup method. Backup method takes care of creating the xml or zip file by looking at the output file extension.&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool&lt;/SPAN&gt; backedup = customizations.Backup(&lt;SPAN style="COLOR: #a31515"&gt;@".\customizations_backup.xml"&lt;/SPAN&gt;);&lt;BR&gt;&lt;SPAN style="COLOR: green"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // or to a zip file&lt;BR&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; backedup = customizations.Backup(&lt;SPAN style="COLOR: #a31515"&gt;@".\customizations_backup.zip"&lt;/SPAN&gt;);&lt;BR&gt;&lt;BR&gt;To restore a backup call the Restore method. You can pass it a .zip file or a .xml file path.&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool&lt;/SPAN&gt; restored = customizations.Restore(&lt;SPAN style="COLOR: #a31515"&gt;@".\customizations.xml"&lt;/SPAN&gt;);&lt;BR&gt;&lt;BR&gt;Once you have restored you need to publish the customizations, to publish call the Publish method. It will publish all customizations.&lt;BR&gt;&lt;SPAN style="COLOR: blue"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool&lt;/SPAN&gt; published = customizations.Publish();&lt;/P&gt;&lt;!--EndFragment--&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://weblogs.asp.net/blogs/gayanperera/CrmCustomizations.cs.txt" target=_blank mce_href="http://weblogs.asp.net/blogs/gayanperera/CrmCustomizations.cs.txt"&gt;Download the class file&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Enjoy!&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144091" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/gayanperera/archive/tags/Dynamics+CRM/default.aspx">Dynamics CRM</category></item><item><title>Moiesk :  C# CodeFIle behind an ASP page has more than 3000 relevant lines... Is this "normal" when programming ASP .NET web apps?</title><link>http://twitter.com/Moiesk/statuses/2557429103</link><pubDate>Thu, 09 Jul 2009 23:55:24 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144129</guid><dc:creator>Tweet Scan: asp.net</dc:creator><slash:comments>0</slash:comments><description>Moiesk : C# CodeFIle behind an ASP page has more than 3000 relevant lines... Is this &amp;quot;normal&amp;quot; when programming ASP .NET web apps? Read More......(&lt;a href="http://twitter.com/Moiesk/statuses/2557429103"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144129" width="1" height="1"&gt;</description></item><item><title>ASP - MultiView Tutorials</title><link>http://www.brainbell.com/tutorials/ASP/MultiView.html</link><pubDate>Thu, 09 Jul 2009 23:50:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144123</guid><dc:creator>Delicious/tag/asp.net</dc:creator><slash:comments>0</slash:comments><description>Read More......(&lt;a href="http://www.brainbell.com/tutorials/ASP/MultiView.html"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144123" width="1" height="1"&gt;</description></item><item><title>A simple include for ASP.NET</title><link>http://weblogs.asp.net/bleroy/archive/2009/07/09/a-simple-include-for-asp-net.aspx</link><pubDate>Thu, 09 Jul 2009 23:30:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144049</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" title="(c) 2005 Bertrand Le Roy" border="0" alt="(c) 2005 Bertrand Le Roy" align="left" src="http://weblogs.asp.net/blogs/bleroy/IMG_03402_64755BBB.jpg" width="164" height="244" /&gt; In &lt;a href="http://weblogs.asp.net/bleroy/archive/2009/07/08/are-master-pages-too-complex.aspx"&gt;yesterday’s post&lt;/a&gt;, I alluded to a simple include extension method that I like to use when I don’t care about designer support. In a comment, Andrew asked if I could share the code for it, so here it is.&lt;/p&gt;  &lt;p&gt;I never liked the regular way of including user controls in WebForms and how they require a registration &lt;strong&gt;and&lt;/strong&gt; a declaration, both of which are more verbose than they need to be. A plain #include would work but is a little outdated (and if I’m not mistaken it’s not even available by default in IIS7).&lt;/p&gt;  &lt;p&gt;My Include method is quite similar to MVC’s RenderPartial except that it doesn’t deal with view data. It’s a plain and simple include. Just give it the relative path to a user control:&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="background: #ffee62"&gt;&amp;lt;%&lt;/span&gt; &lt;span style="color: blue"&gt;this&lt;/span&gt;.Include(&lt;span style="color: #a31515"&gt;&amp;quot;Header.ascx&amp;quot;&lt;/span&gt;); &lt;span style="background: #ffee62"&gt;%&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;Here’s the code for that extension method:&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Web;
&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Web.UI;

&lt;span style="color: blue"&gt;public static class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;IncludeHelper
&lt;/span&gt;{
    &lt;span style="color: blue"&gt;public static void &lt;/span&gt;Include(&lt;span style="color: blue"&gt;this &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Page &lt;/span&gt;page, &lt;span style="color: blue"&gt;string &lt;/span&gt;virtualPath) {
        &lt;span style="color: blue"&gt;var &lt;/span&gt;resolvedPath = &lt;span style="color: #2b91af"&gt;VirtualPathUtility&lt;/span&gt;.Combine(
            &lt;span style="color: #2b91af"&gt;VirtualPathUtility&lt;/span&gt;.GetDirectory(&lt;br /&gt;            page.Request.AppRelativeCurrentExecutionFilePath),
            virtualPath);
        &lt;span style="color: blue"&gt;var &lt;/span&gt;include = page.LoadControl(resolvedPath);
        &lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: blue"&gt;var &lt;/span&gt;writer = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;HtmlTextWriter&lt;/span&gt;(page.Response.Output)) {
            include.RenderControl(writer);
        }
    }
}&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;It just resolves the path, loads the control and renders it in place.&lt;/p&gt;

&lt;p&gt;To use that method, just drop the code as a cs file into App_code if you’re using a web site, or just add it to your project otherwise.&lt;/p&gt;

&lt;p&gt;I played with the idea of enabling an anonymous object parameter to set properties on the user control, but I guess if you’re going to do that, the benefits of the helper get dimmer and going with the regular WebForms user control registration and tags is probably just easier (you’ll get IntelliSense on the properties for example).&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144049" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/HTML/default.aspx">HTML</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/IntelliSense/default.aspx">IntelliSense</category></item><item><title>A simple include for ASP.NET</title><link>http://weblogs.asp.net/bleroy/archive/2009/07/09/a-simple-include-for-asp-net.aspx</link><pubDate>Thu, 09 Jul 2009 23:30:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7144194</guid><dc:creator>Latest Microsoft Blogs</dc:creator><slash:comments>0</slash:comments><description>In yesterday’s post , I alluded to a simple include extension method that I like to use when I don’t care about designer support. In a comment, Andrew asked if I could share the code for it, so here it is. I never liked the regular way of including user Read More......(&lt;a href="http://weblogs.asp.net/bleroy/archive/2009/07/09/a-simple-include-for-asp-net.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7144194" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/aspnet-whatsnew/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/aspnet-whatsnew/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/aspnet-whatsnew/archive/tags/HTML/default.aspx">HTML</category><category domain="http://weblogs.asp.net/aspnet-whatsnew/archive/tags/IntelliSense/default.aspx">IntelliSense</category></item></channel></rss>