This page lists the changes made to existing features taken from ASP.NET MVC 5. It does not include completely new features. Breaking changes are in bold.
HTML Helpers
- Client validation and unobtrusive js enabled by default b62f94f
- Removed System.Data.Linq.Binary dependency (hidden helpers) d3a7912
- Merged
Html.TextBox()
andHtml.Password()
intoa:input
5bd091e - Merged
Html.DropDownList()
andHtml.ListBox()
intoa:select
53e6c22 - Removed
a:http-method-override
a:select
gets selected value from metadata aa38519- Auto-create IEnumerable<SelectListItem> from various types cf3d8a4
a:input
,a:hidden
,a:checkbox
anda:radio
can now get value/checked from current model 30cc474- Excluding member errors by default on
a:validation-summary
14a00b5 - Validation helpers gets messages from config object instead of global resource 63ec292
- Use built-in adapters for derived validation attributes AspNetLib/0168c4c
- ClientDataTypeModelValidatorProvider gets messages from config object instead of global resource e6053e1
- Don’t render date client validation metadata for DateTime 36c3eb0
- Fixed aspnet/AspNetWebStack#7 02e8172
- Value/ValueFor uses EditFormatString by default 0738bbe
- Omit
value
forfile
input 017ad20 a:display-text
shows display name for Enum 315d431
Built-in display/editor templates
- Switched DateTime editor rendering to Rfc3339 by default (consistent with ASP.NET Core) 67a7425
- Omit password value on Password editor template aspnet/AspNetWebStack#135 753fc53
- EditorCssClass configuration function dd95eb6
- Render
readonly
andplaceholder
attributes based on metadata 8688489 - Render display/editor label even when text is empty 8688489
- Support for
a:member-template
on built-in Object display/editor template 09827ff - Group properties on Object editor/display templates into fieldsets b4a90dd
- Removed System.Data.EntityState dependency d3a7912
- Removed Color editor template (System.Drawing dependency) 99673eb
- ModelMetadata’s ShowForEdit and ShowForDisplay can now report different values 3bbf772
- Built-in DropDownList editor template aedab4e
- Built-in ListBox editor template cf3d8a4
- Built-in Enum display/editor templates 9ca2539
- Built-in Upload editor template 9869018
- Built-in ImageUrl display template ffbaeed
- Built-in HttpPostedFileBase editor template daaf809
- Show HttpPostedFileBase property on Object editor template 66ad3bb
a:editor/a:with-options
and use DropDownList template when options are available aedab4e- Stopped removing ‘Model’ first segment in expressions 90de77b
Model binding
- Removed System.Data.Linq.Binary dependency (model binder) d3a7912
- DefaultModelBinder gets messages from config object instead of global resource 63ec292
- Replaced JavaScriptSerializer with Json.NET 9a1ac0d
- Removed CancellationTokenModelBinder 29c215b
Pages
- Removed “default” as default page (“index” only) 86a628c
- Removed display modes support 86a628c
- Base page class references HtmlHelper instead of HtmlHelper<object>, and stopped copying ViewData on HtmlHelper<TModel> 5679046
- Support for null path part on
Href()
86d1fdd
Other
- Removed everything about request validation b661a1f
- Removed ViewContext.View (IView circular dependency) AspNetLib/6684e6f
- Removed ViewContext.ViewBag d61872e
- Removed static properties from HtmlHelper and moved defaults to ViewContext 840220d
- Removed ViewContext.Writer and constructor parameter 840220d
- AntiForgery.TryValidate f655872
- ModelMetadata.GroupName 184cf25
- Merged AjaxRequestExtensions and RequestExtensions into HttpRequestExtensions 2f5f3f4
- Simplified ControllerContext implementation: Removed RouteData 035168a; Removed RequestContext 8cf48ac
- Simplified ViewContext implementation: Added constructor that accepts HttpContextBase only; Removed ViewData and TempData a675d21
- Removed HtmlHelper.RouteCollection 166184c
- Removed UrlHelper.RequestContext and UrlHelper.RouteCollection 8e00919
- Removed FieldValidationMetadata: Unobtrusive validation is the only client validation supported 8814ae3