<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Maintainable MVC: Post-Redirect-Get pattern</title>
	<atom:link href="http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=maintainable-mvc-post-redirect-get-pattern</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 22:01:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Steve Fenton</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-3314</link>
		<dc:creator>Steve Fenton</dc:creator>
		<pubDate>Wed, 30 Nov 2011 22:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-3314</guid>
		<description>Hello Jorrit - it&#039;s great to see people discussing the Post-Redirect-Get pattern.

The PRG pattern is a valuable way of handling your user experience after a form post, even when you aren&#039;t using the ASP.NET MVC framework.

There are quite a few articles online that blindly redirect whether or not the model state is valid, but this is not necessary. The cleanest and simplest way to handle an invalid post is to re-display the view. This then negates the need to pass around data as it already available directly.

Although one reason to use the post-redirect-get pattern is to avoid the &quot;Are you sure you wish to re-submit this form&quot; warning, another reason is that if the user mistakenly confirms a second submission you have to consider the impact of the second submission on your data. If the original post was invalid, a re-submission will not pose a risk to your data integrity.

Keep up the great work on your blog.</description>
		<content:encoded><![CDATA[<p>Hello Jorrit &#8211; it&#8217;s great to see people discussing the Post-Redirect-Get pattern.</p>
<p>The PRG pattern is a valuable way of handling your user experience after a form post, even when you aren&#8217;t using the ASP.NET MVC framework.</p>
<p>There are quite a few articles online that blindly redirect whether or not the model state is valid, but this is not necessary. The cleanest and simplest way to handle an invalid post is to re-display the view. This then negates the need to pass around data as it already available directly.</p>
<p>Although one reason to use the post-redirect-get pattern is to avoid the &#8220;Are you sure you wish to re-submit this form&#8221; warning, another reason is that if the user mistakenly confirms a second submission you have to consider the impact of the second submission on your data. If the original post was invalid, a re-submission will not pose a risk to your data integrity.</p>
<p>Keep up the great work on your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorrit Salverda</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-3277</link>
		<dc:creator>Jorrit Salverda</dc:creator>
		<pubDate>Wed, 19 Oct 2011 04:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-3277</guid>
		<description>Nice article. I probably fall into the category of people that like the fact that you never see the &#039;are you sure you want to re-submit?&#039; warning.

However not doing a redirect on invalid state, as the article mentions, is very useful for avoiding use of tempdata and sessionstate, and thus being able to scale out more easily.

To make returning a view from your POST action as easy as possible make sure you create your view model in a separate mapper for maximum reuse. I so often see a lot of logic repeated in both controller actions, while this is totally unnecessary. Always keep DRY (don&#039;t repeat yourself) in mind.</description>
		<content:encoded><![CDATA[<p>Nice article. I probably fall into the category of people that like the fact that you never see the &#8216;are you sure you want to re-submit?&#8217; warning.</p>
<p>However not doing a redirect on invalid state, as the article mentions, is very useful for avoiding use of tempdata and sessionstate, and thus being able to scale out more easily.</p>
<p>To make returning a view from your POST action as easy as possible make sure you create your view model in a separate mapper for maximum reuse. I so often see a lot of logic repeated in both controller actions, while this is totally unnecessary. Always keep DRY (don&#8217;t repeat yourself) in mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Beaven</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-3276</link>
		<dc:creator>Andrew Beaven</dc:creator>
		<pubDate>Wed, 19 Oct 2011 00:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-3276</guid>
		<description>http://www.stevefenton.co.uk/Content/Blog/Date/201104/Blog/ASP-NET-MVC-Post-Redirect-Get-Pattern/

Here it says that on an error, the PRG pattern does not require you to return a GET action. You&#039;re only required to return a GET when any data has changed.</description>
		<content:encoded><![CDATA[<p><a href="http://www.stevefenton.co.uk/Content/Blog/Date/201104/Blog/ASP-NET-MVC-Post-Redirect-Get-Pattern/" rel="nofollow">http://www.stevefenton.co.uk/Content/Blog/Date/201104/Blog/ASP-NET-MVC-Post-Redirect-Get-Pattern/</a></p>
<p>Here it says that on an error, the PRG pattern does not require you to return a GET action. You&#8217;re only required to return a GET when any data has changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-1770</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Fri, 08 Oct 2010 07:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-1770</guid>
		<description>Great post - thanks</description>
		<content:encoded><![CDATA[<p>Great post &#8211; thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorrit Salverda</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-1711</link>
		<dc:creator>Jorrit Salverda</dc:creator>
		<pubDate>Tue, 31 Aug 2010 09:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-1711</guid>
		<description>While most modern browsers have a double-click protection for submitting forms, indeed some older browser don&#039;t. In handling your form post you should check if you didn&#039;t already perform the action. However this problem is independent of Post/Redirect/Get.

The pattern does prevent repeating the form post, once you are redirected and use the back button.</description>
		<content:encoded><![CDATA[<p>While most modern browsers have a double-click protection for submitting forms, indeed some older browser don&#8217;t. In handling your form post you should check if you didn&#8217;t already perform the action. However this problem is independent of Post/Redirect/Get.</p>
<p>The pattern does prevent repeating the form post, once you are redirected and use the back button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dario-g</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-1707</link>
		<dc:creator>dario-g</dc:creator>
		<pubDate>Mon, 30 Aug 2010 13:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-1707</guid>
		<description>I someone have slow connection then it is possible to send the same form multiple times (just before browser renders other view).</description>
		<content:encoded><![CDATA[<p>I someone have slow connection then it is possible to send the same form multiple times (just before browser renders other view).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JJ</title>
		<link>http://blog.jorritsalverda.nl/2010/03/10/maintainable-mvc-post-redirect-get-pattern/comment-page-1/#comment-791</link>
		<dc:creator>JJ</dc:creator>
		<pubDate>Wed, 09 Jun 2010 20:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jorritsalverda.nl/?p=311#comment-791</guid>
		<description>Thanks for this, great series!</description>
		<content:encoded><![CDATA[<p>Thanks for this, great series!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

