<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>.NET, Universe and Everything according to Dirk</title>
    <description>We apologize for the inconvenience</description>
    <link>http://www.questmaster.net/blog/</link>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>BlogEngine.NET 1.5.0.7</generator>
    <language>en-US</language>
    <blogChannel:blogRoll>http://www.questmaster.net/blog/opml.axd</blogChannel:blogRoll>
    <dc:creator>Dirk Rombauts</dc:creator>
    <dc:title>.NET, Universe and Everything according to Dirk</dc:title>
    <geo:lat>0.000000</geo:lat>
    <geo:long>0.000000</geo:long>
    <image><link>http://dirkrombauts.com/</link><url>http://questmaster.net/community/files/folders/388/download.aspx</url><title>Dirk Rombauts</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/QuestMasterLifeUniverseAndEverythingAccordingToDirk" type="application/rss+xml" /><item>
      <title>Some Design Tips</title>
      <description>&lt;p&gt;I recently came across a couple of interesting summaries regarding web design techniques and tools.&amp;nbsp; I'm posting them here as a note to self.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;8 Layout Solutions To Improve Your Designs: &lt;a title="8 Layout Solutions To Improve Your Designs" rel="nofollow" href="http://www.smashingmagazine.com/2009/05/19/8-layout-solutions-to-improve-your-designs/"&gt;http://www.smashingmagazine.com/2009/05/19/8-layout-solutions-to-improve-your-designs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;55+ Extremely Useful Online Generators for Designers: &lt;a title="55+ Extremely Useful Online Generators for Designers" href="http://www.balkhis.com/web-designs-resources/55-extremely-useful-online-generators-for-designers/"&gt;http://www.balkhis.com/web-designs-resources/55-extremely-useful-online-generators-for-designers/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~4/_Ff2mghRv5o" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~3/_Ff2mghRv5o/post.aspx</link>
      <author>Dirk</author>
      <comments>http://www.questmaster.net/blog/post/Some-Design-Tips.aspx#comment</comments>
      <guid isPermaLink="false">http://www.questmaster.net/blog/post.aspx?id=e68e9771-d617-4d52-ab93-348d3fa58a4a</guid>
      <pubDate>Mon, 15 Jun 2009 19:28:00 +1100</pubDate>
      <category>Design</category>
      <dc:publisher>Dirk</dc:publisher>
      <pingback:server>http://www.questmaster.net/blog/pingback.axd</pingback:server>
      <pingback:target>http://www.questmaster.net/blog/post.aspx?id=e68e9771-d617-4d52-ab93-348d3fa58a4a</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.questmaster.net/blog/trackback.axd?id=e68e9771-d617-4d52-ab93-348d3fa58a4a</trackback:ping>
      <wfw:comment>http://www.questmaster.net/blog/post/Some-Design-Tips.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.questmaster.net/blog/syndication.axd?post=e68e9771-d617-4d52-ab93-348d3fa58a4a</wfw:commentRss>
    <feedburner:origLink>http://www.questmaster.net/blog/post.aspx?id=e68e9771-d617-4d52-ab93-348d3fa58a4a</feedburner:origLink></item>
    <item>
      <title>Using HttpModules on IIS7 in Integrated Mode</title>
      <description>&lt;p&gt;HttpModules are a convenient way of hooking into the ASP.NET request lifecycle.&amp;#160; You need to implement a simple interface (&lt;a title="System.Web.IHttpModule" href="http://msdn.microsoft.com/en-us/library/system.web.ihttpmodule.aspx"&gt;IHttpModule&lt;/a&gt;) and register it in the web.config of your application. In IIS6 and IIS7 with your application in Classic Mode you need to add the entries to the system.web/httpModules section.&lt;/p&gt;  &lt;p&gt;For IIS7 in Integrated Mode, however, you need to add the entries to a different section: system.webServer/modules.&amp;#160; If you encounter the problem that your HttpModules mysteriously fail to execute when running your application on IIS7 with the application in Integrated Mode, then the most likely cause is that your HttpModules are still in the system.web/httpModules section.&lt;/p&gt;  &lt;p&gt;If you need to run your application both on II6 (or IIS7 in Classic Mode) and II7, then you need to add the module registrations to both the system.web/httpModules and the system.webServer/modules sections.&amp;#160; Additionaly, you need to add &amp;lt;validation validateIntegratedModeConfiguration=&amp;quot;false&amp;quot; /&amp;gt; to the system.webServer section; otherwise IIS7 in Integrated Mode will throw an error because of the entries in system.web/httpModules.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~4/Y7uPnk_fV0U" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~3/Y7uPnk_fV0U/post.aspx</link>
      <author>Dirk</author>
      <comments>http://www.questmaster.net/blog/post/Using-HttpModules-on-IIS7-in-Integrated-Mode.aspx#comment</comments>
      <guid isPermaLink="false">http://www.questmaster.net/blog/post.aspx?id=0bb5a008-4660-4a6f-9b5e-486cac2c5147</guid>
      <pubDate>Wed, 20 May 2009 23:10:07 +1100</pubDate>
      <category>Programming</category>
      <category>ASP.NET</category>
      <category>IIS</category>
      <dc:publisher>Dirk</dc:publisher>
      <pingback:server>http://www.questmaster.net/blog/pingback.axd</pingback:server>
      <pingback:target>http://www.questmaster.net/blog/post.aspx?id=0bb5a008-4660-4a6f-9b5e-486cac2c5147</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.questmaster.net/blog/trackback.axd?id=0bb5a008-4660-4a6f-9b5e-486cac2c5147</trackback:ping>
      <wfw:comment>http://www.questmaster.net/blog/post/Using-HttpModules-on-IIS7-in-Integrated-Mode.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.questmaster.net/blog/syndication.axd?post=0bb5a008-4660-4a6f-9b5e-486cac2c5147</wfw:commentRss>
    <feedburner:origLink>http://www.questmaster.net/blog/post.aspx?id=0bb5a008-4660-4a6f-9b5e-486cac2c5147</feedburner:origLink></item>
    <item>
      <title>How to send Ctrl+Alt+Del to a Windows terminal session</title>
      <description>&lt;p&gt;Every so often, you need to send Ctrl+Alt+Del to a Windows terminal session.&amp;nbsp; Blindly hitting those keys with the actived terminal window, however, will bring up the Windows Security window (the "Ctrl+Alt+Del Window") of your local machine, &lt;em&gt;not&lt;/em&gt; that of the remote machine.&amp;nbsp; My usual reaction in those cases used to be cursing Microsoft for their lack of consideration and giving up in disgust.&lt;/p&gt;
&lt;p&gt;No more, though: some time ago, a colleague whose name has disappeared in the recesses of my mind showed me how to do this: press Ctrl+Alt+End.&amp;nbsp; It's probably no coincidence that the "End" key is located just to the right of the "Del" key on a traditional keyboard layout.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~4/1-IzJ_CCXTo" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~3/1-IzJ_CCXTo/post.aspx</link>
      <author>Dirk</author>
      <comments>http://www.questmaster.net/blog/post/How-to-send-Ctrl2bAlt2bDel-to-a-Windows-terminal-session.aspx#comment</comments>
      <guid isPermaLink="false">http://www.questmaster.net/blog/post.aspx?id=8a473a38-b563-47dd-9464-588924488160</guid>
      <pubDate>Tue, 05 May 2009 16:48:00 +1100</pubDate>
      <category>Windows</category>
      <dc:publisher>Dirk</dc:publisher>
      <pingback:server>http://www.questmaster.net/blog/pingback.axd</pingback:server>
      <pingback:target>http://www.questmaster.net/blog/post.aspx?id=8a473a38-b563-47dd-9464-588924488160</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.questmaster.net/blog/trackback.axd?id=8a473a38-b563-47dd-9464-588924488160</trackback:ping>
      <wfw:comment>http://www.questmaster.net/blog/post/How-to-send-Ctrl2bAlt2bDel-to-a-Windows-terminal-session.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.questmaster.net/blog/syndication.axd?post=8a473a38-b563-47dd-9464-588924488160</wfw:commentRss>
    <feedburner:origLink>http://www.questmaster.net/blog/post.aspx?id=8a473a38-b563-47dd-9464-588924488160</feedburner:origLink></item>
    <item>
      <title>Inheriting your ASP.NET Pages and Controls from a Generic Base Class</title>
      <description>&lt;p&gt;I&amp;nbsp;have wanted to be able to inherit my ASP.NET pages and controls from a generic base class a couple of times in the past.&amp;nbsp; I can of course make the page derive from a generic base class in the code behind file, but then I end up with lots of code behind files whose only purpose in life it is to derive the page or control from that base class.&lt;/p&gt;
&lt;p&gt;XAML makes this possible using the x:TypeArguments="..." attribute off the Window or Control element: the type(s) declared in TypeArguments will be used as generic type parameters for the class defined in the x:Class="..." attribute.&lt;/p&gt;
&lt;p&gt;Up until now, I thought this was impossible in ASP.NET.&amp;nbsp; Thanks to a post by Scott Guthrie (&lt;a href="http://weblogs.asp.net/scottgu/archive/2008/12/19/asp-net-mvc-design-gallery-and-upcoming-view-improvements-with-the-asp-net-mvc-release-candidate.aspx"&gt;ASP.NET MVC Design Gallery and Upcoming View Improvements with the ASP.NET MVC Release Candidate&lt;/a&gt;) I now know better: the exact procedure is described in another post by &lt;a href="http://devlicio.us/blogs/tim_barcz/default.aspx"&gt;Tim Barcz&lt;/a&gt; (&lt;a href="http://devlicio.us/blogs/tim_barcz/archive/2008/08/13/strongly-typed-viewdata-without-a-codebehind.aspx"&gt;Strongly-Typed ViewData Without A Codebehind&lt;/a&gt;):&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;&amp;lt;%@ Page Language="C#"&lt;/pre&gt;
&lt;pre&gt;MasterPageFile="~/Views/Shared/Site.Master" &lt;/pre&gt;
&lt;pre&gt;Inherits="System.Web.Mvc.ViewPage`1[[ABCCompany.MVC.Web.Models.LoginData, ABCCompany.MVC.Web]]" %&amp;gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;A couple of caveats here:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The "`1[[" does not start with a straight apostrophe, but rather a single left quote (the key to the left of the "1/!" key on a querty keyboard). &lt;/li&gt;
&lt;li&gt;Don't forgot to delete the designer-generated code file, and probably the code behind file too (it &lt;em&gt;is&lt;/em&gt; just empty, isn't it?) &lt;/li&gt;
&lt;li&gt;ReSharper doesn't like this notation&lt;/li&gt;
&lt;/ol&gt;&lt;img src="http://feeds.feedburner.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~4/CYFZVzVVbzk" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~3/CYFZVzVVbzk/post.aspx</link>
      <author>Dirk</author>
      <comments>http://www.questmaster.net/blog/post/Inheriting-your-ASPNET-Pages-and-Controls-from-a-Generic-Base-Class.aspx#comment</comments>
      <guid isPermaLink="false">http://www.questmaster.net/blog/post.aspx?id=e8fcebd7-6ea9-47d2-a28a-7fb8fe53a6fe</guid>
      <pubDate>Sun, 21 Dec 2008 18:35:00 +1100</pubDate>
      <category>Programming</category>
      <dc:publisher>Dirk</dc:publisher>
      <pingback:server>http://www.questmaster.net/blog/pingback.axd</pingback:server>
      <pingback:target>http://www.questmaster.net/blog/post.aspx?id=e8fcebd7-6ea9-47d2-a28a-7fb8fe53a6fe</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.questmaster.net/blog/trackback.axd?id=e8fcebd7-6ea9-47d2-a28a-7fb8fe53a6fe</trackback:ping>
      <wfw:comment>http://www.questmaster.net/blog/post/Inheriting-your-ASPNET-Pages-and-Controls-from-a-Generic-Base-Class.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.questmaster.net/blog/syndication.axd?post=e8fcebd7-6ea9-47d2-a28a-7fb8fe53a6fe</wfw:commentRss>
    <feedburner:origLink>http://www.questmaster.net/blog/post.aspx?id=e8fcebd7-6ea9-47d2-a28a-7fb8fe53a6fe</feedburner:origLink></item>
    <item>
      <title>FxCopCmd and global suppressions</title>
      <description>&lt;p&gt;At the customer I'm currently working for, there's a continuous build system in place, which is great.&amp;nbsp; Some weeks ago we integrated FxCop / Code Analysis into the process and synchronized the rule set between server and Visual Studio, which is also great.&amp;nbsp; What puzzled me, though, is the fact that the warnings we decided to suppress showed up again on the build report.&lt;/p&gt;
&lt;p&gt;A bit of internet research turned up this thread on Microsoft's MSDN forums: &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/vstscode/thread/1ccea91d-6d01-49b1-b774-20ff649c9a5e/"&gt;FxCopCmd and global suppressions&lt;/a&gt;.&amp;nbsp; The relevant quote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Suppressions are only emitted to the binary if the CODE_ANALYSIS preprocessor directive is defined. If you invoke FxCop using the IDE or via the msbuild task this happens automatically. However, if you do your own build and kick off FxCopCmd.exe manually, you need to make sure that the configuration that you're analyzing has CODE_ANALYSIS defined.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It's important to note that merely defining the CODE_ANALYSIS preprocessor directive will not kick of FxCop during your build in Visual Studio - That's good if you want to keep your build fast in Visual Studio.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~4/eOyEFqg-yzE" height="1" width="1"/&gt;</description>
      <link>http://feedproxy.google.com/~r/QuestMasterLifeUniverseAndEverythingAccordingToDirk/~3/eOyEFqg-yzE/post.aspx</link>
      <author>Dirk</author>
      <comments>http://www.questmaster.net/blog/post/FxCopCmd-and-global-suppressions.aspx#comment</comments>
      <guid isPermaLink="false">http://www.questmaster.net/blog/post.aspx?id=eea07f23-7167-469f-aba4-46e7b73bf682</guid>
      <pubDate>Thu, 27 Nov 2008 10:36:00 +1100</pubDate>
      <category>Programming</category>
      <dc:publisher>Dirk</dc:publisher>
      <pingback:server>http://www.questmaster.net/blog/pingback.axd</pingback:server>
      <pingback:target>http://www.questmaster.net/blog/post.aspx?id=eea07f23-7167-469f-aba4-46e7b73bf682</pingback:target>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.questmaster.net/blog/trackback.axd?id=eea07f23-7167-469f-aba4-46e7b73bf682</trackback:ping>
      <wfw:comment>http://www.questmaster.net/blog/post/FxCopCmd-and-global-suppressions.aspx#comment</wfw:comment>
      <wfw:commentRss>http://www.questmaster.net/blog/syndication.axd?post=eea07f23-7167-469f-aba4-46e7b73bf682</wfw:commentRss>
    <feedburner:origLink>http://www.questmaster.net/blog/post.aspx?id=eea07f23-7167-469f-aba4-46e7b73bf682</feedburner:origLink></item>
  </channel>
</rss>
