Derik Whittaker



Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
Upgrading to Mvc Beta Gotcha to look for

I forgot to mention in my upgrading to MVC beta post to mention one little gotcha.  Since the MVC team renamed Html.Form() to Html.BeginForm you will have to update all your references.  However, you will also have to swap the logic that is being used.

When using Html.Form the parameter order was "Controller" then "Action" (on the simple overload),

Now, when using Html.BeginForm the paramter order is "Action" then 'Controller" (on the simple overload).

If you do not notice this subtle change you will assume everything is good to go.  You will only notice the problem when you run your application.

Just thought I would mention this, happy upgrading.

Till next time,

Posted 10-17-2008 8:10 PM by Derik Whittaker
Filed under: ,



Steve wrote re: Upgrading to Mvc Beta Gotcha to look for
on 10-17-2008 10:36 PM

My suggestion is all use this syntax:

Html.BeginForm<MyController>(c => c.Action(), ...

ASP.NET MVC Archived Buzz, Page 1 wrote ASP.NET MVC Archived Buzz, Page 1
on 10-20-2008 12:38 PM

Pingback from  ASP.NET MVC Archived Buzz, Page 1

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)