Cogito.Web.UI
4.0.0
dotnet add package Cogito.Web.UI --version 4.0.0
NuGet\Install-Package Cogito.Web.UI -Version 4.0.0
<PackageReference Include="Cogito.Web.UI" Version="4.0.0" />
<PackageVersion Include="Cogito.Web.UI" Version="4.0.0" />
<PackageReference Include="Cogito.Web.UI" />
paket add Cogito.Web.UI --version 4.0.0
#r "nuget: Cogito.Web.UI, 4.0.0"
#:package Cogito.Web.UI@4.0.0
#addin nuget:?package=Cogito.Web.UI&version=4.0.0
#tool nuget:?package=Cogito.Web.UI&version=4.0.0
Cogito.Web.UI
Extension methods for the ASP.NET Web Forms control tree.
Why
Web Forms gives you a control hierarchy and almost no way to query it. Finding every control of a type, or the nearest ancestor that implements an interface, means writing the same recursive walk again in every project.
Install
dotnet add package Cogito.Web.UI
Use
foreach (var box in Page.Traverse().OfType<TextBox>())
box.Enabled = false;
Traverse walks the tree depth-first so you can use LINQ against it. ControlExtensions,
ControlCollectionExtensions, WebControlExtensions and HtmlControlExtensions cover the rest;
CogitoControl is a base class for controls that want them.
Targets .NET Framework — Web Forms only exists there.
License
MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- Cogito.Core (>= 4.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cogito.Web.UI:
| Package | Downloads |
|---|---|
|
Cogito.Web.UI.Razor
Provides objects to use Razor for WebForms |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 138 | 10/15/2026 |
| 3.1.37 | 130 | 9/14/2026 |
| 3.1.36 | 1,160 | 11/30/2020 |
| 3.1.35 | 743 | 11/16/2020 |
| 3.1.34 | 795 | 11/16/2020 |
| 3.1.30 | 883 | 11/15/2020 |
| 3.1.29 | 783 | 11/11/2020 |
| 3.1.27 | 763 | 11/11/2020 |
| 3.1.26 | 736 | 11/11/2020 |
| 3.1.24 | 768 | 11/11/2020 |
| 3.1.23 | 990 | 11/11/2020 |
| 3.1.20 | 938 | 11/11/2020 |
| 3.1.18 | 810 | 8/7/2020 |
| 3.1.16 | 807 | 8/7/2020 |
| 3.1.13 | 4,985 | 2/25/2020 |
| 3.1.10 | 876 | 2/25/2020 |
| 3.1.8 | 869 | 2/25/2020 |
| 3.1.7 | 927 | 2/25/2020 |
| 3.1.6 | 921 | 2/25/2020 |
| 3.0.11 | 1,836 | 2/7/2020 |