Enable the use of generics in asp.net markup
It would be nice to enable generic declaration in the markup of an asp.net page and adapt framework to have generic controls. For example: <asp:ListView`1[SomeClass] runat="server" ... like it is done in settings file for .net application
You can accomplish this with strongly-typed data controls that implement the “ItemType” attribute. This feature is available starting with ASP.NET 4.5
David, Can you please clarify what this support would look like in Razor?
David Reher commented
It would be great to have this feature for razor too.
The following feedback item along with votes was transferred from the Visual Studio User Voice site. If you would like to view the original comment history, click here http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2607171-enable-the-use-of-generics-in-asp-net-markup