<?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: ASP.NET MVC: Pass parameters when redirecting from one action to another</title>
	<atom:link href="http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/</link>
	<description></description>
	<pubDate>Fri, 18 May 2012 01:04:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Farhad</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-5656</link>
		<dc:creator>Farhad</dc:creator>
		<pubDate>Tue, 06 Mar 2012 01:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-5656</guid>
		<description>I've noticed that your example uses this. What about passing parameters to another controller class? Is that possible?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that your example uses this. What about passing parameters to another controller class? Is that possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-5620</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 27 Jan 2012 05:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-5620</guid>
		<description>This is just what I was looking for. So nice to be able to pass models between controller instead of having to use TempData. Thanks!</description>
		<content:encoded><![CDATA[<p>This is just what I was looking for. So nice to be able to pass models between controller instead of having to use TempData. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: -glenn-</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-5486</link>
		<dc:creator>-glenn-</dc:creator>
		<pubDate>Thu, 28 Jul 2011 15:42:26 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-5486</guid>
		<description>Very nice article, really like the “One Model In, One Model Out” idea.

What about buttons? Do you prefer a parameter like "string cancelButton" on your Save method or would you add CancelButton as a property on your SaveUpdateModel (which I assume MVC would also bind to)?</description>
		<content:encoded><![CDATA[<p>Very nice article, really like the “One Model In, One Model Out” idea.</p>
<p>What about buttons? Do you prefer a parameter like &#8220;string cancelButton&#8221; on your Save method or would you add CancelButton as a property on your SaveUpdateModel (which I assume MVC would also bind to)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pavankumar</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-5151</link>
		<dc:creator>pavankumar</dc:creator>
		<pubDate>Mon, 04 Oct 2010 06:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-5151</guid>
		<description>hi
 my name is pavan 
i got stucked with small problem.
 
1.i wanted to change the case of the url generated when return this.RedirectToAction(c =&#62; c.Login(String.Empty));   is executed .


2.is there any way to know to which view the code will return</description>
		<content:encoded><![CDATA[<p>hi<br />
 my name is pavan<br />
i got stucked with small problem.</p>
<p>1.i wanted to change the case of the url generated when return this.RedirectToAction(c =&gt; c.Login(String.Empty));   is executed .</p>
<p>2.is there any way to know to which view the code will return</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryk</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-5006</link>
		<dc:creator>Ryk</dc:creator>
		<pubDate>Wed, 26 May 2010 00:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-5006</guid>
		<description>@Nick Formosa -- did you get that sorted out, I have the same issue.</description>
		<content:encoded><![CDATA[<p>@Nick Formosa &#8212; did you get that sorted out, I have the same issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Hillaert</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-4930</link>
		<dc:creator>Steven Hillaert</dc:creator>
		<pubDate>Mon, 12 Apr 2010 08:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-4930</guid>
		<description>Hi,
TempData is stored in session right? Won't this give problems in a load balanced environment (if session state is in-proc)?

Thanks,
Steven</description>
		<content:encoded><![CDATA[<p>Hi,<br />
TempData is stored in session right? Won&#8217;t this give problems in a load balanced environment (if session state is in-proc)?</p>
<p>Thanks,<br />
Steven</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Formosa</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-4857</link>
		<dc:creator>Nick Formosa</dc:creator>
		<pubDate>Sun, 28 Feb 2010 11:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-4857</guid>
		<description>Hi Jon,

This was exactly what i was looking for, but alas, my model parameter which im trying to pass over to the Action is not being passed during my redirect. Am i doing something wrong or missing something? 

i've added the decoration [PassParametersDuringRedirect], and the code looks like:

if(!ModelState.IsValid)
            {
                return this.RedirectToAction(c =&#62; c.Index(model));           
            }

The Action index looks like :

[AcceptVerbs(HttpVerbs.Get)]
public ActionResult Index(RegisterModel model)


Any help would be great.

ps. Curretly Using MVC2 and MVCContrib 2.0.61

Thanks Nick</description>
		<content:encoded><![CDATA[<p>Hi Jon,</p>
<p>This was exactly what i was looking for, but alas, my model parameter which im trying to pass over to the Action is not being passed during my redirect. Am i doing something wrong or missing something? </p>
<p>i&#8217;ve added the decoration [PassParametersDuringRedirect], and the code looks like:</p>
<p>if(!ModelState.IsValid)<br />
            {<br />
                return this.RedirectToAction(c =&gt; c.Index(model));<br />
            }</p>
<p>The Action index looks like :</p>
<p>[AcceptVerbs(HttpVerbs.Get)]<br />
public ActionResult Index(RegisterModel model)</p>
<p>Any help would be great.</p>
<p>ps. Curretly Using MVC2 and MVCContrib 2.0.61</p>
<p>Thanks Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Tolley</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-4736</link>
		<dc:creator>Adam Tolley</dc:creator>
		<pubDate>Thu, 05 Nov 2009 18:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-4736</guid>
		<description>OH! Light bulb moment! Calling View("otherView", model) causes the current action to dump data into that view but not invoke the method - this seems obvious but I had missed it for some reason.  I think that clears up a lot, Thanks!</description>
		<content:encoded><![CDATA[<p>OH! Light bulb moment! Calling View(&#8221;otherView&#8221;, model) causes the current action to dump data into that view but not invoke the method - this seems obvious but I had missed it for some reason.  I think that clears up a lot, Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Kruger</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-4735</link>
		<dc:creator>Jon Kruger</dc:creator>
		<pubDate>Thu, 05 Nov 2009 16:40:25 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-4735</guid>
		<description>@Adam,

A lot of times the action that you're redirecting to has a bunch of logic in it.  So you could just return View() if you want, because in your case you don't have any logic in the action method that you would be redirecting to if you did the redirect.</description>
		<content:encoded><![CDATA[<p>@Adam,</p>
<p>A lot of times the action that you&#8217;re redirecting to has a bunch of logic in it.  So you could just return View() if you want, because in your case you don&#8217;t have any logic in the action method that you would be redirecting to if you did the redirect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Tolley</title>
		<link>http://jonkruger.com/blog/2009/04/06/aspnet-mvc-pass-parameters-when-redirecting-from-one-action-to-another/comment-page-1/#comment-4734</link>
		<dc:creator>Adam Tolley</dc:creator>
		<pubDate>Thu, 05 Nov 2009 16:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://jonkruger.com/blog/?p=141#comment-4734</guid>
		<description>To reply to my own post - It looks like this also supports intra-controller redirects.  My question then changes slightly - Why would I use a redirect rather than just returning View("otherView", model); ?

Link to answer http://mvccontrib.codeplex.com/wikipage?title=RedirectToAction&#38;referringTitle=Documentation</description>
		<content:encoded><![CDATA[<p>To reply to my own post - It looks like this also supports intra-controller redirects.  My question then changes slightly - Why would I use a redirect rather than just returning View(&#8221;otherView&#8221;, model); ?</p>
<p>Link to answer <a href="http://mvccontrib.codeplex.com/wikipage?title=RedirectToAction&amp;referringTitle=Documentation" rel="nofollow">http://mvccontrib.codeplex.com/wikipage?title=RedirectToAction&amp;referringTitle=Documentation</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

