<?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>Pure Blue &#187; ASP.NET MVC</title>
	<atom:link href="http://blog.pureblue.co.nz/category/aspnet-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pureblue.co.nz</link>
	<description>.NET and other things</description>
	<lastBuildDate>Mon, 18 Apr 2011 00:16:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.pureblue.co.nz' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Pure Blue &#187; ASP.NET MVC</title>
		<link>http://blog.pureblue.co.nz</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.pureblue.co.nz/osd.xml" title="Pure Blue" />
	<atom:link rel='hub' href='http://blog.pureblue.co.nz/?pushpress=hub'/>
		<item>
		<title>ASP.NET MVC 2 R2 Released</title>
		<link>http://blog.pureblue.co.nz/2010/02/06/asp-net-mvc-2-r2-released/</link>
		<comments>http://blog.pureblue.co.nz/2010/02/06/asp-net-mvc-2-r2-released/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 22:09:47 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://blog.pureblue.co.nz/?p=140</guid>
		<description><![CDATA[So release candidate 2 (RC2) has been released. Most importantly from my point of view it fixes the breaking issue I had with RC1. From the release notes: The GetValue method of the FormCollection class now allows empty string values. Good on the MVC team for getting a quick turnaround on this and other bugs &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pureblue.co.nz&amp;blog=2513886&amp;post=140&amp;subd=pureblue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So release candidate 2 (RC2) has been released. Most importantly from my point of view it fixes the <a title="ASP.NET MVC R1 Breaking issue" href="http://blog.pureblue.co.nz/2010/01/25/warning-asp-net-mvc-rc-formcollection-bug/" target="_blank">breaking issue I had with RC1</a>. From the release notes:</p>
<blockquote><p>The GetValue method of the FormCollection class now allows empty string values.</p></blockquote>
<p>Good on the MVC team for getting a quick turnaround on this and other bugs &#8211; it was only a month ago (Jan 4) that the RC1 was released.</p>
<p>Download: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7aba081a-19b9-44c4-a247-3882c8f749e3&amp;displaylang=en" target="_blank">ASP.NET MVC R2</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pureblue.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pureblue.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pureblue.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pureblue.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pureblue.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pureblue.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pureblue.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pureblue.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pureblue.co.nz&amp;blog=2513886&amp;post=140&amp;subd=pureblue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pureblue.co.nz/2010/02/06/asp-net-mvc-2-r2-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e87832b33c29d5158683a1f55eff7700?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt</media:title>
		</media:content>
	</item>
		<item>
		<title>Warning: ASP.NET MVC RC FormCollection bug</title>
		<link>http://blog.pureblue.co.nz/2010/01/25/warning-asp-net-mvc-rc-formcollection-bug/</link>
		<comments>http://blog.pureblue.co.nz/2010/01/25/warning-asp-net-mvc-rc-formcollection-bug/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 22:45:54 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Gotcha's]]></category>

		<guid isPermaLink="false">http://blog.pureblue.co.nz/?p=128</guid>
		<description><![CDATA[UPDATE: This post refers to ASP.NET MVC 2 R1. The R2 release on 4th Feb 2010 fixed the issue. I started to update an ASP.NET MVC 1.0 application to the new MVC 2.0 RC but will now put off that migration for now &#8211; I&#8217;ll wait for the RTM which should fix this. The problem [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pureblue.co.nz&amp;blog=2513886&amp;post=128&amp;subd=pureblue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE</strong>: This post refers to ASP.NET MVC 2 R1. The R2 release on 4th Feb 2010 <a href="http://blog.pureblue.co.nz/2010/02/06/asp-net-mvc-2-r2-released/" target="_blank">fixed the issue</a>.</p>
<p>I started to update an ASP.NET MVC 1.0 application to the new MVC 2.0 RC but will now put off that migration for now &#8211; I&#8217;ll wait for the RTM which should fix this.</p>
<p>The problem is to do with the FormCollection object throwing an ArgumentException (&#8220;Value cannot be null or empty&#8221;) when calling TryUpdateModel from within your controller:</p>
<p><span style="font-family:Courier;font-size:xx-small;">at System.Web.Mvc.FormCollection.GetValue(String name) <br />
at System.Web.Mvc.DefaultModelBinder.BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) <br />
at System.Web.Mvc.Controller.TryUpdateModel[TModel](TModel model, String prefix, String[] includeProperties, String[] excludeProperties, IValueProvider valueProvider) <br />
at System.Web.Mvc.Controller.TryUpdateModel[TModel](TModel model, IValueProvider valueProvider) </span></p>
<p>This is apparently a <a href="http://stackoverflow.com/questions/1936970/asp-net-mvc-2-problem-with-updatemodel" target="_blank">known issue with the RC release </a>and should be fixed in the next release. The project I am working on is fairly sizable and with the many uses of FormCollection, a lot of runtime errors have been created!</p>
<p>One suggested solution is to <a href="http://www.blogs.victorero.com/2010/01/21/UsingTheASPNETMVC20RCSourceCodeToCorrectABug.aspx" target="_blank">download the MVC source code and make a fix</a> (hack?) to by-pass the issue. However, I&#8217;d rather stay on the main MVC branch and just wait for the RTM.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pureblue.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pureblue.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pureblue.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pureblue.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pureblue.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pureblue.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pureblue.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pureblue.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pureblue.co.nz&amp;blog=2513886&amp;post=128&amp;subd=pureblue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pureblue.co.nz/2010/01/25/warning-asp-net-mvc-rc-formcollection-bug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e87832b33c29d5158683a1f55eff7700?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET MVC 1.0 Released</title>
		<link>http://blog.pureblue.co.nz/2009/03/18/aspnet-mvc-10-released/</link>
		<comments>http://blog.pureblue.co.nz/2009/03/18/aspnet-mvc-10-released/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 21:29:19 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>

		<guid isPermaLink="false">http://pureblue.wordpress.com/?p=72</guid>
		<description><![CDATA[ASP.NET MVC has reached RTM! I was kind of expecting Scott Guthrie to announce the final release, but instead it was only a small news item on the ASP.NET  homepage! It has been a long time in Beta and as such I have stayed away from it until the last couple of weeks. There are enough [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pureblue.co.nz&amp;blog=2513886&amp;post=72&amp;subd=pureblue&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ASP.NET MVC has reached RTM! I was kind of expecting <a title="Scott Guthrie's Blog" href="http://weblogs.asp.net/scottgu/">Scott Guthrie</a> to announce the final release, but instead it was only a small news item on the <a title="The Official Microsoft ASP.NET Site" href="http://www.asp.net/">ASP.NET</a>  homepage!</p>
<p>It has been a long time in Beta and as such I have stayed away from it until the last couple of weeks. There are enough new products released from Microsoft to keep me busy without getting bogged down in beta&#8217;s!</p>
<p>So in the last couple of weeks I have been learning ASP.NET MVC after discovering that the final release was imminent and I have to admit that I am very impressed. The first and foremost difference would be that there is no longer the same postback lifecycle and no ViewState, which means pages are very fast (yay)! The level of control you have over the final HTML is akin to the old days of classic ASP or PHP, but still with all the .NET goodies to make life easier. After spending so long in Web Forms, it is quite strange (but a nice strange) to look at the HTML source and see plain, concise markup.</p>
<p>I&#8217;ve found the best learning source to be the tutorials provided on the official <a title="ASP.NET MVC Tutorials" href="http://www.asp.net/mvc/">ASP.NET MVC</a> site and also the first chapter of the new Wrox book which is available for free from <a title="Free chapter for ASP.NET MVC book" href="http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx">Scott Guthrie</a>. As with everything there are no shortcuts and there is a lot to learn, but if you are comfortable with the web platform in general, then the learning curve is not that steep at all.</p>
<p>To learn something well you need to create a sample project.  I always create a simple task management tool so that I get a nice comparison between technologies. What I found was that to AJAX-enable the site was a lot more straight forward than using the Web Forms approach &#8211; the end result was cleaner and the whole MVC approach leans itself totally to the AJAX approach.</p>
<p>All in all, well worth learning.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pureblue.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pureblue.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pureblue.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pureblue.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pureblue.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pureblue.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pureblue.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pureblue.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pureblue.co.nz&amp;blog=2513886&amp;post=72&amp;subd=pureblue&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pureblue.co.nz/2009/03/18/aspnet-mvc-10-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e87832b33c29d5158683a1f55eff7700?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
