ASP. net mvc rc out, add and change content can refer to the upgrade document http://go.microsoft.com/fwlink? Linkid = 137661 & clcid = 0x409 and blog postsProgramI upgraded the program and found the following problems.
-
- Listitem disappears. You have to write one or use the web. Controls
-
- Change modelbinders. defaultbinder to modelbinders. binders. defaultbinder.
-
- Fileresult is added, so the original using system. IO; and the complete namespace must be added to the file class.
-
- Note the changes in views/Web. config and System. Web/pages.
- The form is changed to fieldset, but it is not so cool. We can attach a piece of css I added to make the form into our commonly used left and right type.
Fieldset P { Padding-left : 122px }
Fieldset P Label { Margin-left : -122px ; Float : Left ; Width : 120px ; Text-align : Right }
Fieldset P Input [Type = Text ], Fieldset P Textarea { Width : 400px }
-
- Set When HTML is passed
<% @ Page validaterequest = "false" %>
If no effect is reached, add the [validateinput (false)] attribute to the action.