<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET MVC</title><link>http://forums.asp.net/1146.aspx</link><description>Discussions regarding Model-View-Controller (MVC) support in ASP.NET.  &lt;a href="http://forums.asp.net/1215.aspx"&gt;T4MVC subforum&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Parameters were reordered in BeginForm()</title><link>http://forums.asp.net/thread/2713778.aspx</link><pubDate>Thu, 30 Oct 2008 05:42:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2713778</guid><dc:creator>Simon.Sanderson</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2713778.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2713778</wfw:commentRss><description>&lt;p&gt;I have just spent a significant amount of time trying to trace why, after installing the MVC Beta, my forms were being rendered thus:&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;form&lt;/span&gt;&lt;span class="attr"&gt; action=&amp;quot;&amp;quot; method=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;post&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;:&lt;br /&gt;:&lt;br /&gt;&amp;lt;/&lt;span class="tag"&gt;form&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;where the action attribute is empty.&amp;nbsp; The reason, rather tersely, is due to the &lt;i&gt;low save&lt;/i&gt; observation made by &lt;b&gt;canton &lt;/b&gt;where the &lt;i&gt;controller &lt;/i&gt;and &lt;i&gt;action &lt;/i&gt;parameters have been re-ordered in the BeginForm() method.&amp;nbsp; I am suprised that more e-noise has not been made about this change.&lt;/p&gt;&lt;p&gt;Perhaps there is a case for a more strongly typed classes for Action and Controller names to help prevent similar annoyances like this from occuring in future?&amp;nbsp; I know I shall be looking to implement such framework functionality asap ..... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Parameters were reordered in BeginForm()</title><link>http://forums.asp.net/thread/2690510.aspx</link><pubDate>Fri, 17 Oct 2008 16:57:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2690510</guid><dc:creator>Eilon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2690510.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2690510</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Sorry about forgetting this in the release notes. We did quite a few renames and reordered some parameters and must have missed that change. I think we missed it because in the &amp;quot;diff&amp;quot; that we did&amp;nbsp;this change doesn&amp;#39;t show up because renamed the method as well. The diff tool just thought we deleted the old Form() methods and added the brand new &lt;strong&gt;Begin&lt;/strong&gt;Form() methods, so the parameter reordering didn&amp;#39;t show up.&lt;/p&gt;
&lt;p&gt;The number of changes like this should be much smaller now that the Beta is released, so I hope we don&amp;#39;t run into this issue again. I&amp;#39;m glad that you at least found the issue in your app and fixed it!&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eilon&lt;/p&gt;</description></item><item><title>Parameters were reordered in BeginForm()</title><link>http://forums.asp.net/thread/2689388.aspx</link><pubDate>Fri, 17 Oct 2008 09:24:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2689388</guid><dc:creator>canton</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2689388.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2689388</wfw:commentRss><description>&lt;p&gt;In the process of migrating from MVC Preview 5 to Beta, I discovered an API change that bugs me a lot.&lt;/p&gt;
&lt;p&gt;public static IDisposable Form(this HtmlHelper helper, string controllerName, string actionName)&lt;/p&gt;
&lt;p&gt;was changed to &lt;/p&gt;
&lt;p&gt;public static MvcForm BeginForm(this HtmlHelper htmlHelper, string actionName, string controllerName)&lt;/p&gt;
&lt;p&gt;Notice that the position of controllerName and actionName got interchanged. This can&amp;#39;t be detected by compiler, and must be fixed manually.&lt;/p&gt;
&lt;p&gt;I understand this is more consistent to ActionLink(label, action, controller). And I also understand API in Preview versions is subject to huge changes. But many of us will be glad to see such changes documented in the Release Notes.&lt;/p&gt;</description></item></channel></rss>