ASP.NET MVC 2 problem with UpdateModel

后端 未结 2 503
轮回少年
轮回少年 2020-12-05 11:39

I\'m trying to use updatemodel(myItem, formcollection) with asp.net mvc 2 but it fails with the stack trace below.

   at System.Web.Mvc.FormCollection.GetVal         


        
相关标签:
2条回答
  • 2020-12-05 12:04

    This is a confirmed bug in MVC 2 RC. If you have the MVC source, you can remove the String.IsNullOrEmpty() check from FormCollection.GetValue(), recompile, and redeploy. The FormCollection class is at src\SystemWebMvc\Mvc\FormCollection.cs. The team is aware of it and a fix is planned for the next preview.

    0 讨论(0)
  • 2020-12-05 12:05

    Had the same issue here when trying to look at Orchard CMS. Lets hope they fix it soon.

    0 讨论(0)
提交回复
热议问题