Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates ASP.NET Web Forms .ascx user controls to Blazor .razor components 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 User Controls (.ascx files) are reusable markup fragments with code-behind. They map directly to Blazor .razor components with .razor.cs code-behind files.
The webforms-to-blazor CLI tool handles L1 conversion automatically. This skill guides L2 repair for common patterns that require contextual understanding.
| Step | What Happens |
|---|---|
| 1. Directive removal | <%@ Control ... %> is stripped |
| 2. Markup transforms | asp: prefixes removed, expressions converted |
| 3. Code-behind preservation | Base class remapped, usings updated |
4. @inherits injection | Added to .razor when code-behind inherits a CustomControls type |
| 5. Output | .razor + .razor.cs pair in the output project |
ASCX code-behind files contain business logic that should compile unchanged. The CLI:
System.Web.UI.* usingsusing BlazorWebFormsComponents.CustomControls;UserControl base class (now mapped to BWFC's UserControl)@inherits UserControl into the .razor fileDo NOT rewrite code-behind logic. Fix compile errors by adding missing shims or stubs.
Web Forms exposes ASCX properties to parent pages. In Blazor, these become [Parameter] properties:
// Web Forms (worked without attribute)
public string Title { get; set; }
// Blazor (requires [Parameter])
[Parameter]
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.