This question is locked. New answers and comments are not allowed.
Hi. I'm running the 2011 Q1 build on a C# MVC3 Razor project (on Win 7 x64 Enterprise SP1), and I seem to be having a problem with a conflict between the new Upload control and the built-in method Controller.UpdateModel in MVC.
Essentially the issue is that if I don't have the upload control in the view then, without changing any code, UpdateModel works as advertised. However if I have a single upload control in the view then UpdateModel stops working altogether. I've looked for any obvious reasons for this but I could not find any.
I have attached a simple project that has the upload control on a page that also uses UpdateModel. I have also included a quick screen capture of me demonstrating the issue. I thought this might be a great deal faster than a lengthy explanation.
I don't know if this is a bug or if there is a workaround. If it is a bug please just let me know and I'll put in place a quick reflection-based alternative to using UpdateModel easily enough. Thanks in advance.
Essentially the issue is that if I don't have the upload control in the view then, without changing any code, UpdateModel works as advertised. However if I have a single upload control in the view then UpdateModel stops working altogether. I've looked for any obvious reasons for this but I could not find any.
I have attached a simple project that has the upload control on a page that also uses UpdateModel. I have also included a quick screen capture of me demonstrating the issue. I thought this might be a great deal faster than a lengthy explanation.
I don't know if this is a bug or if there is a workaround. If it is a bug please just let me know and I'll put in place a quick reflection-based alternative to using UpdateModel easily enough. Thanks in advance.