Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • limin 27 posts 149 karma points
    Dec 22, 2022 @ 22:46
    limin
    0

    how do I add a user control as a macro in Umbraco 10?

    how do I add a user control as a macro in Umbraco 10?

    in Umbraco 6, I have the option to choose .NET User Control there seems no such option in Umbraco 10

    How do I add a .NET User Control as a macro in Umbraco 10?

    thanks

  • Luuk Peters 85 posts 330 karma points
    Dec 23, 2022 @ 14:32
    Luuk Peters
    100

    I'm not sure if it's still supported. But to be honest, User Controls are very old stuff and I wouldn't want them in my project anyway. Use partials views instead :)

    In the screenshot here: https://docs.umbraco.com/umbraco-cms/reference/templating/macros they still display the option for user controls, but macro's (at least in Umbraco 10) accept only Macro partial views, which are MVC partial views and not user controls.

  • limin 27 posts 149 karma points
    Dec 23, 2022 @ 16:36
    limin
    0

    thanks for your info

Please Sign in or register to post replies

Write your reply to:

Draft