Timeline for MVC 6 Tag Helpers as Replacement for Editor Templates
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 5, 2019 at 13:40 | comment | added | raterus | This strategy only works for readonly purposes, if you wanted to use input elements you have to handle this completely within the tag helper code and not call a partial view. The problem is none of your html input "names" are going to align to your original model once they are rendered, and the core team has decided not to support binding a ModelExpression to a razor field. github.com/aspnet/Razor/issues/926 | |
| Feb 17, 2019 at 2:22 | history | edited | Mahmoud Al-Qudsi | CC BY-SA 4.0 |
Add syntax highlighting
|
| Aug 20, 2018 at 21:59 | comment | added | Lewis Cianci | This reminds me of the ASP .NET Web Forms days, with the <asp: controls (like asp:TextBox etc) came into play, and you would read one thing in the HTML markup and then get something completely different in the HTML response stream. Bad vibes. Of course I could have it completely wrong. | |
| Nov 19, 2016 at 8:19 | comment | added | secretAgentB | This does not work in ASP.NET Core 1.1. I get an error in line where you say partial.WriteTo(writer, _htmlEncoder) because WriteTo expects System.Text.Encodings.Web.HtmlEncoder not Microsoft.Extensions.WebEncoders.IHTMLEncoder. If you comment that out and try to run it - you then get InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.WebEncoders.IHtmlEncoder' while attempting to activate 'UserTagHelper'. | |
| Aug 25, 2016 at 7:10 | comment | added | Mukesh Bhojwani | is it possible to provide the model (User) from my page, let's say the sub-model of my main model, rather than instantiating it in the ProcessAsync method in tag helper class? | |
| Aug 10, 2015 at 2:59 | comment | added | N. Taylor Mullen | Couldn't have put it better myself! Yes :) | |
| Aug 10, 2015 at 2:25 | comment | added | Sergey Kandaurov | So HTML Helpers are not actually being deprecated, but rather are supplemented by Tag Helpers? | |
| Aug 10, 2015 at 2:23 | vote | accept | Sergey Kandaurov | ||
| Aug 10, 2015 at 0:23 | history | answered | N. Taylor Mullen | CC BY-SA 3.0 |