Copied to clipboard

Flag this post as spam?

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


  • Michael Sim 2 posts 22 karma points
    Mar 17, 2011 @ 18:50
    Michael Sim
    0

    .Net user control not rendering in node, rendering fine in template?

    I've created a .net user control in vs2010, all works fine in test .aspx page. Built control and moved .ascx file to usercontrols directory and assembly to bin directory. Created macro to render control. Checked use in editor, added macro to node, re-published node, macro doesn't render but in view source, i see something starting with 

    <?UMBRACO_MACRO ... />

    However, if i put the same macro into a template, it renders the user control as expected. 

    Is it possible to get this to work by inserting the macro into a specific node or is there something about the template that is different to make the user control render?

    umbraco v 4.0.4.2 (Assembly version: 1.0.3811.17115)

    thanks in advance

    //Mike

     

  • Daniel Bardi 927 posts 2562 karma points
    Mar 17, 2011 @ 20:28
    Daniel Bardi
    0

    Should render the same in template and in RTE.

    Do you have parameters for the macro ... be sure you check the Show box for each parameter to allow entry when adding to a node.

  • Michael Sim 2 posts 22 karma points
    Mar 18, 2011 @ 10:50
    Michael Sim
    0

    Daniel

    I spun up a new runway site, added my user control + macro and it rendered fine. Tracked the issue to a piece of xslt in the original site. Created a new doc type bypassing the xslt and the macro (and control) rendered as expected.

    Appreciate the response though,

    //Mike

  • Daniel Bardi 927 posts 2562 karma points
    Mar 18, 2011 @ 10:52
    Daniel Bardi
    0

    Very glad you figured it out... awesome... 

Please Sign in or register to post replies

Write your reply to:

Draft