<?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/"
	>

<channel>
	<title>Don Kitchen &#187; .net</title>
	<atom:link href="http://www.donkitchen.com/category/programming/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.donkitchen.com</link>
	<description>family, kids, tech, and more...</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:09:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using HTML5 Web Storage in ASP.NET</title>
		<link>http://www.donkitchen.com/2012/01/25/using-html5-web-storage-in-asp-net/</link>
		<comments>http://www.donkitchen.com/2012/01/25/using-html5-web-storage-in-asp-net/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:57:14 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[local storage]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=464</guid>
		<description><![CDATA[This article does a great job at showing you a simple example of how to use local browser web storage in conjunction with ASP.NET web methods to save and retrieve the data from a server side database.  Even if you aren&#8217;t interested in using this functionality in an application you have now, it&#8217;s worth reading [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dotnetslackers.com/articles/aspnet/Using-HTML5-Web-Storage-in-ASP-NET.aspx#s6-passing-data-from-web-storage-to-server" target="_blank">This article</a> does a great job at showing you a simple example of how to use local browser web storage in conjunction with ASP.NET web methods to save and retrieve the data from a server side database.  Even if you aren&#8217;t interested in using this functionality in an application you have now, it&#8217;s worth reading to know what HTML5 brings to the table as far as storing your data down at the client.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2012/01/25/using-html5-web-storage-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the root part of a domain in .NET</title>
		<link>http://www.donkitchen.com/2011/09/16/get-the-root-part-of-a-domain-in-net/</link>
		<comments>http://www.donkitchen.com/2011/09/16/get-the-root-part-of-a-domain-in-net/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 19:32:20 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=429</guid>
		<description><![CDATA[Need to get the .com, .us, .biz, etc. part of the domain name in .NET? Here&#8217;s how: Dim root As String root = Right&#40;Request.Url.Host, &#40;Request.Url.Host.Length&#41; - InStrRev&#40;Request.Url.Host, &#34;.&#34;&#41;&#41;]]></description>
			<content:encoded><![CDATA[<p>Need to get the .com, .us, .biz, etc. part of the domain name in .NET?</p>
<p>Here&#8217;s how:</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #0600FF;">Dim</span> root <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
root <span style="color: #008000;">=</span> <span style="color: #0600FF;">Right</span><span style="color: #000000;">&#40;</span>Request.<span style="color: #0000FF;">Url</span>.<span style="color: #0000FF;">Host</span>, <span style="color: #000000;">&#40;</span>Request.<span style="color: #0000FF;">Url</span>.<span style="color: #0000FF;">Host</span>.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">-</span> <span style="color: #0600FF;">InStrRev</span><span style="color: #000000;">&#40;</span>Request.<span style="color: #0000FF;">Url</span>.<span style="color: #0000FF;">Host</span>, <span style="color: #808080;">&quot;.&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/09/16/get-the-root-part-of-a-domain-in-net/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Code Metrics Viewer</title>
		<link>http://www.donkitchen.com/2011/06/29/visual-studio-2010-code-metrics-viewer/</link>
		<comments>http://www.donkitchen.com/2011/06/29/visual-studio-2010-code-metrics-viewer/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 13:09:15 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[code metrics]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=423</guid>
		<description><![CDATA[What is Code Metrics Viewer? &#8211; Matthias Friedrich highlights his Visual Studio 2010 Code Metrics Viewer extension which plugs into VS 2010 Professional and uses the Code Metrics Power Tool to provide code metrics information to the IDE. Matthias is blogging a number of posts on this project blog which look at the various features [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://codemetricsviewer.wordpress.com/2011/06/26/what-is-code-metrics-viewer/" target="_blank">What is Code Metrics Viewer?</a> &#8211; Matthias Friedrich highlights his Visual Studio 2010 Code Metrics Viewer extension which plugs into VS 2010 Professional and uses the Code Metrics Power Tool to provide code metrics information to the IDE. Matthias is blogging a number of posts on this project blog which look at the various features of the viewer and I encourage you to check those other posts out too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/29/visual-studio-2010-code-metrics-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajax-based data loading using jQuery in ASP.NET</title>
		<link>http://www.donkitchen.com/2011/06/28/ajax-based-data-loading-using-jquery-in-asp-net/</link>
		<comments>http://www.donkitchen.com/2011/06/28/ajax-based-data-loading-using-jquery-in-asp-net/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 15:36:05 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=421</guid>
		<description><![CDATA[Great article to check out! Ajax-based data loading using jQuery.load() function in ASP.NET &#8211; Hajan Selmani takes a back to basics look at using jQuery to load partial chunks of HTML from a page using Ajax and insert them into the current page, providing a nice way of lighting up a web application with an [...]]]></description>
			<content:encoded><![CDATA[<p>Great article to check out!</p>
<p><a href="http://weblogs.asp.net/hajan/archive/2011/06/27/ajax-based-data-loading-using-jquery-load-function-in-asp-net.aspx" target="_blank">Ajax-based data loading using jQuery.load() function in ASP.NET</a> &#8211; Hajan Selmani takes a back to basics look at using jQuery to load partial chunks of HTML from a page using Ajax and insert them into the current page, providing a nice way of lighting up a web application with an ‘Ajax’ feel whilst easily maintaining non-ajax support.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/28/ajax-based-data-loading-using-jquery-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Microsoft Kinect SDK has arrived!</title>
		<link>http://www.donkitchen.com/2011/06/17/the-microsoft-kinect-sdk-has-arrivedarrived/</link>
		<comments>http://www.donkitchen.com/2011/06/17/the-microsoft-kinect-sdk-has-arrivedarrived/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 11:10:48 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=416</guid>
		<description><![CDATA[The official Microsoft Kinect SDK beta is now out and available for download! Covered by Channel Nine Live Media, Microsoft Scientist Anoop Gupta made the announcement himself that after the long wait, users may now go to the official SDK website to download the latest software development kit for the Kinect camera. Here are the features that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="Microsoft Kinect" src="http://www.kinecthacks.com/wp-content/uploads/2011/02/xbox360.jpg" alt="" width="460" height="345" /></p>
<p>The official <a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Microsoft </a><strong><a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Kinect</a> SDK beta is now out and available for download</strong>! Covered by Channel Nine Live Media, Microsoft Scientist Anoop Gupta made the announcement himself that after the long wait, users may now go to the <a href="http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/default.aspx">official SDK website</a> to download the latest software development kit for the Kinect camera.</p>
<p>Here are the features that will come with the <a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Kinect </a>SDK (taken from Microsoft SDK website):</p>
<blockquote><p><em>“The Kinect for Windows SDK beta is a programming toolkit for application developers. It enables the academic and enthusiast communities easy access to the capabilities offered by the Microsoft Kinect device connected to computers running the Windows 7 operating system.</em></p>
<p><em>The Kinect for Windows SDK beta includes drivers, rich APIs for raw sensor streams and human motion tracking, installation documents, and resource materials. It provides Kinect capabilities to developers who build applications with C++, C#, or Visual Basic by using Microsoft Visual Studio 2010.</em></p>
<p><em><strong>Raw sensor streams</strong></em></p>
<p><em>Access to raw data streams from the depth sensor, color camera sensor, and four-element microphone array enables developers to build upon the low-level streams that are generated by the Kinect sensor.</em></p>
<p><em><strong>Skeletal tracking</strong></em></p>
<p><em>The capability to track the skeleton image of one or two people moving within the Kinect field of view make it easy to create gesture-driven applications.</em></p>
<p><em><strong>Advanced audio capabilities</strong></em></p>
<p><em>Audio processing capabilities include sophisticated acoustic noise suppression and echo cancellation, beam formation to identify the current sound source, and integration with the Windows speech recognition API.</em></p>
<p><em><strong>Sample code and documentation</strong></em></p>
<p><em>The SDK includes more than 100 pages of technical documentation. In addition to built-in help files, the documentation includes detailed walkthroughs for most samples provided with the SDK.</em></p>
<p><em><strong>Easy installation</strong></em></p>
<p><em>The SDK installs quickly, requires no complex configuration, and the complete installer size is less than 100 MB. Developers can get up and running in just a few minutes with a standard standalone Kinect sensor unit (widely available at retail outlets).</em></p>
<p><em>This SDK is designed for non-commercial purposes only; a commercial version is expected to be available at a later date.”</em></p></blockquote>
<p>Additional details about the SDK is that it is currently in beta, meaning it is not yet the actual finished product. Rather, Microsoft wants the opinion of the Kinect hackers/developers in finalizing the product. By keeping it in beta, Microsoft will then ask users to give their feedback concerning the SDK with the eventual hope of releaseing a Kinect SDK built for and with Kinect hackers.</p>
<p>There is also a commercial version coming out. Details are not yet final as to what the difference would be between the two versions of the <a href="http://www.amazon.com/gp/product/B003O6JLZ2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&amp;tag=donkitchencom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=B003O6JLZ2" target="_blank">Kinect</a>.</p>
<p>Source: <a href="http://www.kinecthacks.com/" target="_blank">kinecthacks.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/17/the-microsoft-kinect-sdk-has-arrivedarrived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial for getting started with ASP.NET, WCF and jQuery</title>
		<link>http://www.donkitchen.com/2011/06/15/tutorial-for-getting-started-with-asp-net-wcf-and-jquery/</link>
		<comments>http://www.donkitchen.com/2011/06/15/tutorial-for-getting-started-with-asp-net-wcf-and-jquery/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 15:22:44 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[offline]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=412</guid>
		<description><![CDATA[I have been doing some work lately with jQuery, WCF, HTML5 and ASP.NET and it&#8217;s been actually pretty fun challenging and fun. I&#8217;ve gotten to tinker with quite a few new technologies that I hadn&#8217;t used before and really got to sink my teeth into jQuery and some of the cool new features that HTML5 [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing some work lately with jQuery, WCF, HTML5 and ASP.NET and it&#8217;s been actually pretty fun challenging and fun.  I&#8217;ve gotten to tinker with quite a few new technologies that I hadn&#8217;t used before and really got to sink my teeth into jQuery and some of the cool new features that HTML5 has to offer (like local storage and offline capabilities).</p>
<p>When starting out with my recent project I had to pull from various resources to learn what these tools were capable of and how I could fit them all together.  And while it doesn&#8217;t get into the HTML5 aspects of my project <a title="Create a Simple Task List Using ASP.NET, WCF, and jQuery, Part 1" href="http://www.devproconnections.com/article/aspnet2/create-a-simple-task-list-using-asp-net-wcf-and-jquery-part-1-129917" target="_blank">this article</a> on creating a simple task list with ASP.NET, WCF and jQuery would have been very helpful to me in the beginning.</p>
<p>While the article is only Part 1 in a series, I think it will get you going in the right direction and will show you some of the power that you have on the client with the new jQuery data templates.  I must say that with the introduction of these templates you can truly offload a large amount of your logic down to the client which will provide for a much better (and faster) user experience.</p>
<p>Anyway, check out the article.  It&#8217;s short, to the point and offers the source code as a download too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/06/15/tutorial-for-getting-started-with-asp-net-wcf-and-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename an email attachment before sending in .NET</title>
		<link>http://www.donkitchen.com/2011/04/21/rename-an-email-attachment-before-sending-in-net/</link>
		<comments>http://www.donkitchen.com/2011/04/21/rename-an-email-attachment-before-sending-in-net/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 16:12:27 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=392</guid>
		<description><![CDATA[I recently had the need to send an email with a file attachment from disk. The problem I faced was that the filename was not very user friendly at all. What I didn&#8217;t want to do however was rename the file on disk, or create another copy of the file with a more generic name, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the need to send an email with a file attachment from disk.  The problem I faced was that the filename was not very user friendly at all.  What I didn&#8217;t want to do however was rename the file on disk, or create another copy of the file with a more generic name, that could create conflicts with other users in the system.</p>
<p>I was happy to find that you can simply change the attachment&#8217;s file name after you create it based on the file on disk.  So my original file, <em>2073B129-6DFF-4088-A785-C9CD8B1AADBF.pdf,</em> could appear as <em>Agreement.pdf</em> to the recipient of the email.  Much better, don&#8217;t you think?</p>
<p>And here&#8217;s how I did it:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">Attachment attachment<span style="color: #008000;">;</span>
attachment <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Attachment<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;2073B129-6DFF-4088-A785-C9CD8B1AADBF.pdf&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
attachment<span style="color: #008000;">.</span><span style="color: #0000FF;">ContentDisposition</span><span style="color: #008000;">.</span><span style="color: #0000FF;">FileName</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Agreement.pdf&quot;</span><span style="color: #008000;">;</span>
MailMessage<span style="color: #008000;">.</span><span style="color: #0000FF;">Attachments</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>attachment<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

<p>There&#8217;s obviously more to the code related to creating the message, etc.  But this is what you need if you want to give the attachment a different file name.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/04/21/rename-an-email-attachment-before-sending-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use the My Namespace in C#</title>
		<link>http://www.donkitchen.com/2011/02/22/how-to-use-the-my-namespace-in-c/</link>
		<comments>http://www.donkitchen.com/2011/02/22/how-to-use-the-my-namespace-in-c/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 11:16:14 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=370</guid>
		<description><![CDATA[When I was first trying to transition from VB.NET to C# I found it pretty odd that the &#8220;My&#8221; Namespace wasn&#8217;t available in C#.  If you aren&#8217;t aware of what I&#8217;m talking about, the Microsoft.VisualBasic.MyServices namespace (My in Visual Basic) provides easy and intuitive access to a number of .NET Framework classes, enabling you to write code [...]]]></description>
			<content:encoded><![CDATA[<p>When I was first trying to transition from VB.NET to C# I found it pretty odd that the &#8220;My&#8221; Namespace wasn&#8217;t available in C#.  If you aren&#8217;t aware of what I&#8217;m talking about, the <a href="http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.myservices.aspx" target="_blank">Microsoft.VisualBasic.MyServices</a> namespace (<em>My in Visual Basic)</em> provides easy and intuitive access to a number of .NET Framework classes, enabling you to write code that interacts with the computer, application, settings, resources, and so on.</p>
<p>After a little hunting I discovered that by simply adding a reference and a using statement that I could be up and running with my beloved <em>My</em> classes that I had come to know and love.  Here&#8217;s how you do it&#8230;</p>
<h3>Add a Reference</h3>
<ol>
<li>In Solution Explorer, right-click the References node, and select Add Reference.</li>
<li>When the References dialog box appears, scroll down the list, and select Microsoft.VisualBasic.dll.You might also want to include the following line in the using section at the start of your program.

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.VisualBasic.Devices</span><span style="color: #008000;">;</span></pre></div></div>

</li>
</ol>
<h3>Example</h3>
<p>This example calls various static methods contained in the MyServices namespace. For this code to compile remember that we added a reference to Microsoft.VisualBasic.DLL in the step above.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.VisualBasic.Devices</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #6666cc; font-weight: bold;">class</span> TestMyServices
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">// Play a sound with the Audio class:</span>
        Audio myAudio <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Audio<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Playing sound...&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        myAudio<span style="color: #008000;">.</span><span style="color: #0000FF;">Play</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">@&quot;c:\WINDOWS\Media\chimes.wav&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">// Display time information with the Clock class:</span>
        Clock myClock <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Clock<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Current day of the week: &quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>myClock<span style="color: #008000;">.</span><span style="color: #0000FF;">LocalTime</span><span style="color: #008000;">.</span><span style="color: #0000FF;">DayOfWeek</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Current date and time: &quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>myClock<span style="color: #008000;">.</span><span style="color: #0000FF;">LocalTime</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">// Display machine information with the Computer class:</span>
        Computer myComputer <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Computer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Computer name: &quot;</span> <span style="color: #008000;">+</span> myComputer<span style="color: #008000;">.</span><span style="color: #0000FF;">Name</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>myComputer<span style="color: #008000;">.</span><span style="color: #0000FF;">Network</span><span style="color: #008000;">.</span><span style="color: #0000FF;">IsAvailable</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Computer is connected to network.&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">else</span>
        <span style="color: #008000;">&#123;</span>
            Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Computer is not connected to network.&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>Not all the classes in the MyServices namespace can be called from a C# application.  You can visit <a href="http://msdn.microsoft.com/en-us/library/ms173136.aspx" target="_blank">this MSDN article</a> that details more on what&#8217;s not supported.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/02/22/how-to-use-the-my-namespace-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use ASP.NET and DotNetZip to Create and Extract ZIP Files</title>
		<link>http://www.donkitchen.com/2011/02/16/use-asp-net-and-dotnetzip-to-create-and-extract-zip-files/</link>
		<comments>http://www.donkitchen.com/2011/02/16/use-asp-net-and-dotnetzip-to-create-and-extract-zip-files/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 01:59:42 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=367</guid>
		<description><![CDATA[I recently came across this article from Scott Mitchell, that shows how to use DotNetZip to create and extract ZIP files in an ASP.NET application, and covers advanced features like password protection and encryption. The article details all that you can do with the feature-rich, free, open source ZIP implementation for .NET - DotNetZip. Using DotNetZip and [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across <a href="http://dotnetslackers.com/articles/aspnet/Use-ASP-NET-and-DotNetZip-to-Create-and-Extract-ZIP-Files.aspx" target="_blank">this article</a> from <a href="http://www.4guysfromrolla.com/ScottMitchell.shtml" target="_blank">Scott Mitchell</a>, that shows how to use <a href="http://dotnetzip.codeplex.com/" target="_blank">DotNetZip</a> to create and extract ZIP files in an ASP.NET application, and covers advanced features like password protection and encryption.</p>
<p>The article details all that you can do with the feature-rich, free, open source ZIP implementation for .NET - <a rel="nofollow" href="http://dotnetzip.codeplex.com/" target="_blank">DotNetZip</a>. Using DotNetZip and a dash of .NET code you can:</p>
<ul>
<li>Create a new ZIP file and add one or more files or folders,</li>
<li>Read the contents of a ZIP file,</li>
<li>Extract all (or some) of the contents of a ZIP file to a specified folder,</li>
<li>Use advanced ZIP file format features, such as encrypting the contents of the ZIP and protecting them with a password.</li>
</ul>
<p>This is definitely something that will come in handy.  I&#8217;ve tried working with zip files in the past and it has never been this easy.  Dealing with a ZIP file is definitely something that you will need to do at some point if you program long enough.  With this article, it will definitely be something that you won&#8217;t bang your head against the wall trying to accomplish!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2011/02/16/use-asp-net-and-dotnetzip-to-create-and-extract-zip-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMAP Main Meeting &#8211; Tuesday, December 7th &#8211; IIS Express, Razor, and WebMatrix, OH my!</title>
		<link>http://www.donkitchen.com/2010/12/07/cmap-main-meeting-tuesday-december-7th/</link>
		<comments>http://www.donkitchen.com/2010/12/07/cmap-main-meeting-tuesday-december-7th/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 13:36:19 +0000</pubDate>
		<dc:creator>Don</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[user groups]]></category>
		<category><![CDATA[CMAP]]></category>
		<category><![CDATA[user group]]></category>

		<guid isPermaLink="false">http://www.donkitchen.com/?p=357</guid>
		<description><![CDATA[CMAP Main Meeting &#8211; Tuesday, December 7th &#8211; IIS Express, Razor, and WebMatrix, OH my! &#8211; G. Andrew Duthie When: Tuesday, November 7th, 6:30 PM &#8211; 9:00 PM Where: HCC Business Training Center, 6751 Columbia Gateway Drive, MD, 21046 Topic: IIS Express, Razor, and WebMatrix, OH my! Does the announcement of so many new technologies [...]]]></description>
			<content:encoded><![CDATA[<div>CMAP Main Meeting &#8211; Tuesday, December 7th &#8211; IIS Express, Razor, and WebMatrix, OH my! &#8211; G. Andrew Duthie</div>
<p><strong>When:</strong> <em>Tuesday, November 7th, 6:30 PM &#8211; 9:00 PM</em></p>
<div>
<p><strong>Where:</strong> <a href="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=6751+Columbia+Gateway+Drive,+MD,+21046&amp;sll=39.389814,-77.229857&amp;sspn=0.013582,0.01766&amp;ie=UTF8&amp;hq=&amp;hnear=6751+Columbia+Gateway+Dr,+Columbia,+Howard,+Maryland+21046&amp;t=h&amp;z=17" target="_blank"><em>HCC Business Training Center, 6751 Columbia Gateway Drive, MD, 21046</em></a></p>
<p><strong>Topic:</strong> <em>IIS Express, Razor, and WebMatrix, OH my!</em></p>
<blockquote><p>Does the announcement of so many new technologies make you wonder  where the yellow brick road is that will lead you to the Oz of  understanding? Well, there&#8217;s no denying that there&#8217;s a lot to keep up  with these days if you&#8217;re a web developer. So let Microsoft Developer  Evangelist G. Andrew Duthie give you an overview of Microsoft WebMatrix,  ASP.NET Web Pages, the new Razor syntax, and IIS Express, and how they fit in with the existing offerings in Microsoft&#8217;s web stack.</p>
<p>Learn how and when you&#8217;d want to leverage these new technologies, and  when existing technologies may be a better choice. Expect discussion  and demo, and bring your questions, so we can make this an interactive  and dynamic session!</p></blockquote>
<p><strong>Presenter:</strong> <em>G. Andrew Duthie</em></p>
<blockquote><p>G. Andrew Duthie, aka .net DEvHammer, is the Developer Evangelist for  Microsoft&#8217;s Mid-Atlantic States district, where he provides support and  education for developers working with the .net development platform. In  addition to his work with Microsoft, Andrew is the author of several  books on ASP.NET and web development, and has spoken at numerous industry conferences from VSLive! and ASP.NET Connections, to Microsoft&#8217;s Professional Developer Conference (PDC) and  Tech-Ed. Andrew is also the creator and developer of Community  Megaphone, a site designed for promoting and finding developer community  events. Andrew can be reached through his blog at <a href="http://blogs.msdn.com/gduthie" target="_blank">http://blogs.msdn.com/gduthie</a> or on Twitter at <a href="http://www.twitter.com/devhammer" target="_blank">@devhammer</a>.</p></blockquote>
<p>For more information about the meeting, please visit the CMAP <a href="http://www.cmap-online.org/" target="_blank">website</a>.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.donkitchen.com/2010/12/07/cmap-main-meeting-tuesday-december-7th/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

