If the original URI is needed, it can be accessed with the RequestUri.OriginalString API. SuggestionĬode should be updated to unescape string parameters from a route. So, whereas /controller/action/some data would previously match the route /controller/action/ and provide some data as the data parameter, it will now provide some data instead. In order to conform to RFC 2396, spaces in route paths are now escaped when populating action parameters from a route. This behavior can also be explicitly controlled with an appSetting: ĪSP.NET MVC now escapes spaces in strings passed in via route parameters Details When targeting previous framework versions or not using targetFrameworkVersion, trailing delimiters for some values are still returned. NET Framework 4.8 or later by using the targetFrameworkVersion element, the default behavior changes to strip delimiters. NET Framework 4.8 or later versions correctly parse multipart data, so form values are available during request execution. NET Framework 4.7.2 and earlier versions, ASP.NET might incorrectly parse multipart boundary values, resulting in form data being unavailable during request execution. NameĪSP.NET Incorrect multipart handling may result in lost form data. Setting it lower, or not at all, preserves the old incorrect behavior. Suggestionįor the correct behavior for restoring attributes on postback, set the targetFrameworkVersion to 4.8 or higher. NET Framework 4.8 or later versions, they are preserved after postback. NET Framework 4.7.2 and earlier versions, CheckBox.InputAttributes and CheckBox.LabelAttributes that are programmatically added to a WebForms CheckBox control are lost after postback.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |