Copied to clipboard

Flag this post as spam?

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


  • suzyb 476 posts 934 karma points
    Dec 12, 2011 @ 10:56
    suzyb
    0

    Include user control macro in xslt or razor macro

    I have a doctype that holds content for panels that I want to appear on my page.  These panels are children of the page and I have an xslt macro that loops through them and outputs their content.

    The problem is some of these panels need to have a simple form added to them that allows users to enter their email address.  I have a user control macro with this form but I don't know how to add it to the xslt macro and get it to function.  Using RenderMacroContent just outputs the html, the form doesn't work.

    Is there any way to include the user control macro in such a way that it works.

  • Rodion Novoselov 694 posts 859 karma points
    Dec 13, 2011 @ 17:25
    Rodion Novoselov
    0

    Hi. Hm. Have you made sure that your page has <form runat="server"> tag and your macro is drawn inside this form?

  • suzyb 476 posts 934 karma points
    Dec 13, 2011 @ 17:25
    suzyb
    0

    Yes

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies