资讯
Use dependency injection in ASP.Net Web Forms To leverage dependency injection in your Web Forms, you can use constructor injection as shown in the code snippet below.
However since web-forms is an intrinsic part of ASP.NET and the .NET Framework, the new await support will be available when vNext versions of the overall .NET Framework are available.
Though ASP.NET Web Forms isn’t part of the vNext initiative it isn’t being ignored. As part of Visual Studio 2013 Update 2 it has picked up some new tooling, EF integration, and Roslyn support.
Microsoft recommends replacing relic from old .NET Framework with Blazor, but you can still do ASP.NET Web Forms apps in Visual Studio 2022 if you want to, with a couple tweaks.
Do the conversion form by form rather than creating a whole new site. There will be some forms (those forms maintaining your lookup tables, for example) that you may never bother converting. Where you ...
当前正在显示可能无法访问的结果。
隐藏无法访问的结果