Cogito.Web.UI.Razor 4.0.0

dotnet add package Cogito.Web.UI.Razor --version 4.0.0
                    
NuGet\Install-Package Cogito.Web.UI.Razor -Version 4.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cogito.Web.UI.Razor" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cogito.Web.UI.Razor" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Cogito.Web.UI.Razor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cogito.Web.UI.Razor --version 4.0.0
                    
#r "nuget: Cogito.Web.UI.Razor, 4.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cogito.Web.UI.Razor@4.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cogito.Web.UI.Razor&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Cogito.Web.UI.Razor&version=4.0.0
                    
Install as a Cake Tool

Cogito.Web.UI.Razor

Render Razor templates from inside ASP.NET Web Forms.

Why

Web Forms markup is painful for anything list-shaped, and a whole-application move to MVC is rarely on the table. This lets you write the awkward parts as Razor and drop them into an existing page or user control, one template at a time.

Install

dotnet add package Cogito.Web.UI.Razor

Use

public partial class ProductList : RazorControl
{
}

RazorControl and RazorControlTemplate render a template as part of the normal control lifecycle, so the output participates in the page as any other control would. RazorPage does the same at page level, and HtmlHelperResult carries pre-encoded markup.

Targets .NET Framework. Built on Cogito.Web.Razor.

License

MIT.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 118 10/15/2026
3.1.37 122 9/14/2026
3.1.36 953 11/30/2020
3.1.35 772 11/16/2020
3.1.34 823 11/16/2020
3.1.30 907 11/15/2020
3.1.29 824 11/11/2020
3.1.27 749 11/11/2020
3.1.26 745 11/11/2020
3.1.24 804 11/11/2020
3.1.23 989 11/11/2020
3.1.20 998 11/11/2020
3.1.18 802 8/7/2020
3.1.16 821 8/7/2020
3.1.13 951 2/25/2020
3.1.10 856 2/25/2020
3.1.8 882 2/25/2020
3.1.7 910 2/25/2020
3.1.6 967 2/25/2020
3.0.11 816 2/7/2020
Loading failed