asp.net-mvc-futures

Strongly Typed RedirectToAction (Futures) using async Controllers

自作多情 提交于 2020-01-12 07:58:08
问题 having this code it gives me a warning : Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. public async Task<ActionResult> Details(Guid id) { var calendarEvent = await service.FindByIdAsync(id); if (calendarEvent == null) return RedirectToAction<CalendarController>(c => c.Index()); var model = new CalendarEventPresentation(calendarEvent); ViewData.Model = model; return

How do I install ASP.NET MVC 2 Futures?

感情迁移 提交于 2019-12-24 23:02:37
问题 I want to use the DataAnnotations.DisplayAttribute.Order property to arrange my fields when using the DisplayForModel and EditorForModel methods. Related question: Does the DataAnnotations.DisplayAttribute.Order property not work with ASP.NET MVC 2? I think that I need to use the ASP.NET MVC 2 Futures. But I can't get it to work. How do I install ASP.NET MVC 2 Futures? Why are my fields still out of order? 回答1: Download ASP.NET MVC 2 Futures from CodePlex. Save its files somewhere in the file

ASP.NET MVC CookieTempDataProvider.DeserializeTempData returns null

蓝咒 提交于 2019-12-23 12:17:42
问题 I've been trying to use CookieTempDataProvider to pass a basic message between a post (entity update) and a get (entity list) using the RedirectToAction method. When using the default TempData implementation this works fine, however when I use the cookie-based version from the MVC Futures project, the TempData dictionary is empty after the redirect. This is because the TempDataDictionary is returned as null from the DeserializeTempData method. I know exactly what line of code the problem

What is the MVC Futures Library?

随声附和 提交于 2019-12-22 01:24:04
问题 On Stack Overflow, I've seen a few people referring to the MVC Futures library What is this project? How do I use it? Where is the documentation? 回答1: Check Eilon Lipton's Blog : In this blog post I'll introduce you to a feature that's not even part of the main ASP.NET MVC download. It's part of the separate MVC Futures download, which includes prototypes of features that we're thinking of including in a future version of ASP.NET MVC . 回答2: There is no documentation because it is very early

Does the DataAnnotations.DisplayAttribute.Order property not work with ASP.NET MVC 2?

给你一囗甜甜゛ 提交于 2019-12-20 03:15:18
问题 I set values for the Order property of the Display attribute in my model metadata. [MetadataType(typeof(OccasionMetadata))] public partial class Occasion { private class OccasionMetadata { [ScaffoldColumn(false)] public object Id { get; set; } [Required] [Display(Name = "Title", Order = 0)] public object Designation { get; set; } [Required] [DataType(DataType.MultilineText)] [Display(Order = 3)] public object Summary { get; set; } [Required] [DataType(DataType.DateTime)] [Display(Order = 1)]

What is the syntax for a strongly-typed ActionLink in MVC 4 with MVC 4 Futures?

只愿长相守 提交于 2019-12-18 03:58:42
问题 I am using a new MVC 4 Internet application template with Visual Studio 2012. I have installed the Nuget package for MVC 4 Futures. In my _Layout.cshtml I am building the navigation menu. This works and builds the correct URL: @Html.ActionLink("Customers", "Index", "Customers") This is what I would like to work, a strongly-typed variation: @Html.ActionLink<CustomersController>(c => c.Index(), "Customers", null) It griefs on "Cannot choose method from method group. Did you mean to invoke a

Ignoring properties when serializing

こ雲淡風輕ζ 提交于 2019-12-13 15:15:22
问题 I'm pulling my hair out on this one. I am trying to implement a multi-step wizard, and i'm using the Html.Serialize html helper in MVC3 Futures. This works well, except one of the properties in my model is a SelectList . I don't want this property serialized (and it blows up when it tries anyways). I can't use [NonSerialized] because that only works on fields, not properties. I've even tried some of the other normal ways such as [XmlIgnore] (which I didn't think would work anyways). Can

ASP.Net MVC Futures Refresh For MVC2

淺唱寂寞╮ 提交于 2019-12-09 13:18:58
问题 With the release of MVC2, what noteworthy features are included in the refresh of the MVC Futures library? 回答1: There are two versions of MVC Futures that sit alongside MVC 2 RTM. One version targets .NET 3.5; the other targets .NET 4. (The .NET 4 version is not a superset of the .NET 3.5 version; you must include both of them in your application if you want the entire range of functionality.) Download from http://aspnet.codeplex.com/releases/view/41742. A non-exhaustive feature list (.NET 3

What is the MVC Futures Library?

孤街浪徒 提交于 2019-12-04 22:13:57
On Stack Overflow, I've seen a few people referring to the MVC Futures library What is this project? How do I use it? Where is the documentation? Check Eilon Lipton's Blog : In this blog post I'll introduce you to a feature that's not even part of the main ASP.NET MVC download. It's part of the separate MVC Futures download, which includes prototypes of features that we're thinking of including in a future version of ASP.NET MVC . There is no documentation because it is very early prototype work. We do post the source code so if you're really interested, you can figure it out. Over time, we'll

Strongly Typed RedirectToAction (Futures) using async Controllers

夙愿已清 提交于 2019-12-03 13:34:25
having this code it gives me a warning : Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. public async Task<ActionResult> Details(Guid id) { var calendarEvent = await service.FindByIdAsync(id); if (calendarEvent == null) return RedirectToAction<CalendarController>(c => c.Index()); var model = new CalendarEventPresentation(calendarEvent); ViewData.Model = model; return View(); } public async Task<RedirectResult> Create(CalendarEventBindingModel binding) { var model =