<?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>WhyPad.com &#187; ASP.NET/C#</title>
	<atom:link href="http://www.whypad.com/category/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whypad.com</link>
	<description>Tools and Tricks for Life and Tech</description>
	<lastBuildDate>Tue, 06 Dec 2011 22:35:45 +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>C# &#8211; NullReferenceException with TableAdapter and Scalar Values</title>
		<link>http://www.whypad.com/posts/c-nullreferenceexception-with-tableadapter-and-scalar-values/1017/</link>
		<comments>http://www.whypad.com/posts/c-nullreferenceexception-with-tableadapter-and-scalar-values/1017/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 22:35:45 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=1017</guid>
		<description><![CDATA[Ok, I&#8217;ve been hacking around this particular problem for a month now, but think I&#8217;ve got a bead on how to stop it. So, I hope this helps someone! The Situation I&#8217;ve got a TableAdapter in C# and I&#8217;m using a Query to return a scalar value that ultimately becomes a double data type. The [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/c-nullreferenceexception-with-tableadapter-and-scalar-values/1017/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# / VSTO &#8211; Using Excel Ranges</title>
		<link>http://www.whypad.com/posts/cvsto-using-excel-ranges/1005/</link>
		<comments>http://www.whypad.com/posts/cvsto-using-excel-ranges/1005/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 23:44:08 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=1005</guid>
		<description><![CDATA[Using Visual Studio Tools for Office (VSTO) with Excel lets you use C# (or your other favorite .NET language to leverage the power of Excel. But you will have to learn how the syntax for the Excel object model as opposed to just using VBA syntax. This post shows you how to use Excel ranges [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/cvsto-using-excel-ranges/1005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# &#8211; VSTO &#8211; Get Last Used Row or Cell in Excel Spreadsheet</title>
		<link>http://www.whypad.com/posts/c-vsto-last-row-or-cell-in-excel-worksheet/997/</link>
		<comments>http://www.whypad.com/posts/c-vsto-last-row-or-cell-in-excel-worksheet/997/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 22:12:46 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=997</guid>
		<description><![CDATA[I have had the opportunity to get my fingers dirty with Visual Studio Tools for Office, at long last.  My project brought me back to an old familiar problem in Excel, finding the last used row in a spreadsheet. This applies equally to C#, VB, and VBA.  You just have to get access to the [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/c-vsto-last-row-or-cell-in-excel-worksheet/997/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C#: Break vs. Continue in Foreach Loops</title>
		<link>http://www.whypad.com/posts/c-break-vs-continue-in-foreach-loops/776/</link>
		<comments>http://www.whypad.com/posts/c-break-vs-continue-in-foreach-loops/776/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 14:17:40 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=776</guid>
		<description><![CDATA[A C# Quick Tip: You&#8217;ve probably seen &#8216;break&#8217; before in Switch Case statements, but it also plays an important role in Foreach Loops. To break completely out of a foreach loop (foregoing all the remaining loops), use: break; To go to the next iteration in the loop, use: continue; When is &#8216;break&#8217; useful? It is [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/c-break-vs-continue-in-foreach-loops/776/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C#: That Pesky DBNull Error in Datatables</title>
		<link>http://www.whypad.com/posts/c-that-pesky-dbnull-error-in-datatables/767/</link>
		<comments>http://www.whypad.com/posts/c-that-pesky-dbnull-error-in-datatables/767/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 21:42:02 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=767</guid>
		<description><![CDATA[Datatables and Tableadapters are one of the most beautiful things about C# and Visual Studio, until you&#8217;re processing rows in your datatable and you get something that reads like &#8220;The value for column &#8216;your_column&#8217; in table &#8216;your_table&#8217; is DBNull.&#8221;  If you go a little further, you may get:  &#8220;Exception Details: System.InvalidCastException: Specified cast is not [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/c-that-pesky-dbnull-error-in-datatables/767/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ASP.NET: Hide Menu Items by Role with Security Trimming</title>
		<link>http://www.whypad.com/posts/asp-net-hide-menu-items-by-role-with-security-trimming/757/</link>
		<comments>http://www.whypad.com/posts/asp-net-hide-menu-items-by-role-with-security-trimming/757/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 17:37:56 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=757</guid>
		<description><![CDATA[ASP.NET makes authorizations and security fairly simple with its roleManager, Authentication, and SiteMap providers.  This quick hint only covers how to hide a particular menu item from the standard Menu and TreeList navigation components when using a SiteMap provider. Web.config Settings for Role-based Menu Security 1) When you declare your sitemap provider, turn sucrityTrimmingEnabled to [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/asp-net-hide-menu-items-by-role-with-security-trimming/757/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C# &#8211; SQL Server Foreign Key, Unique constraints</title>
		<link>http://www.whypad.com/posts/c-sql-server-foreign-key-unique-constraints/682/</link>
		<comments>http://www.whypad.com/posts/c-sql-server-foreign-key-unique-constraints/682/#comments</comments>
		<pubDate>Wed, 27 May 2009 21:40:24 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=682</guid>
		<description><![CDATA[I got tripped up today with a particularly nasty Join statement that worked perfectly form 90% of the queries, but was blowing up at times.  The error message was:  Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. I looked and looked at this SQL code: It looked [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/c-sql-server-foreign-key-unique-constraints/682/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C# &#8211; Convert String Array to a List (.Net 2.0)</title>
		<link>http://www.whypad.com/posts/c-convert-string-array-to-a-list-net-20/674/</link>
		<comments>http://www.whypad.com/posts/c-convert-string-array-to-a-list-net-20/674/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:48:13 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=674</guid>
		<description><![CDATA[So you&#8217;ve got a C# string and you want to convert it to a List&#60;string&#62;.  Lists are one of the most efficient ways of storing&#8230;well&#8230;lists of things in .Net.  If you&#8217;re in .Net 3.0, it&#8217;s quite easy to go from a string array to a list by using the .ToList() function. If you&#8217;re stuck in .Net [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/c-convert-string-array-to-a-list-net-20/674/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET &#8211; Get User Name Under Windows Authentication</title>
		<link>http://www.whypad.com/posts/aspnet-get-user-name-under-windows-authentication/628/</link>
		<comments>http://www.whypad.com/posts/aspnet-get-user-name-under-windows-authentication/628/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 20:27:38 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=628</guid>
		<description><![CDATA[Getting the authenticated user&#8217;s name when using Windows Authentication with ASP.NET is very simple.  I just keep having to go back to Google or dig out an old project to remember it, so here it is: Be sure to add the Security reference: Thats it! [UPDATE] Check out the comments below for some additional suggestions [...]]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/aspnet-get-user-name-under-windows-authentication/628/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Excel Spreadsheet of US States</title>
		<link>http://www.whypad.com/posts/excel-spreadsheet-of-us-states/583/</link>
		<comments>http://www.whypad.com/posts/excel-spreadsheet-of-us-states/583/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 05:18:42 +0000</pubDate>
		<dc:creator>byron</dc:creator>
				<category><![CDATA[ASP.NET/C#]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Miscellany]]></category>
		<category><![CDATA[Worksoft Certify]]></category>

		<guid isPermaLink="false">http://www.whypad.com/posts/excel-spreadsheet-of-us-states/583/</guid>
		<description><![CDATA[Here's a simple Excel spreadsheet of US States and their abbreviations.  I don't know how many times I've recreated this blooming thing.  But no more.  See full post for download.]]></description>
		<wfw:commentRss>http://www.whypad.com/posts/excel-spreadsheet-of-us-states/583/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

