Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates custom ASP.NET Web Forms WebControl and CompositeControl server controls to Blazor using BlazorWebFormsComponents.
59% 95%+36 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
Not used yet
ASP.NET Web Forms custom server controls inherit from System.Web.UI.WebControls.WebControl and render HTML imperatively via HtmlTextWriter. BlazorWebFormsComponents provides a drop-in replacement that lets this code work unchanged in Blazor.
The key principle: change one using statement, keep your code.
// Before (Web Forms)
using System.Web.UI.WebControls;
// After (Blazor + BWFC)
using BlazorWebFormsComponents.CustomControls;
The BWFC WebControl class overrides Blazor's BuildRenderTree:
HtmlTextWriter instance (backed by StringBuilder)AddAttributesToRender(writer) — emits ID, class, style, tooltip, disabledRender(writer) → RenderBeginTag → RenderContents → RenderEndTagwriter.GetHtml()builder.AddMarkupContent(0, html)Your imperative rendering code produces the exact same HTML it did in Web Forms.
The classic Web Forms pattern — override TagKey for the outer element, RenderContents for the inner HTML:
using BlazorWebFormsComponents.CustomControls;
using Microsoft.AspNetCore.Components;
public class StatusBadge : WebControl
{
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.