Copied to clipboard

Flag this post as spam?

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


  • raghavendran 30 posts 50 karma points
    Jul 29, 2010 @ 13:44
    raghavendran
    0

    Render .Net Control from xslt

    I  have a .net based macro and an xslt macro..... the .net macro works perfectly when inserted in a template...

    but when it is inserted in the xslt file browser hangs and iis gets stuck...so i had to reset iis....Wats the problem??

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 29, 2010 @ 14:36
    Stefan Kip
    0

    I think the problem is that it's not possible to include a .net macro/usercontrol in a xslt macro...

  • raghavendran 30 posts 50 karma points
    Jul 30, 2010 @ 08:05
    raghavendran
    0

    But i need to ...is there any solution for it??

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jul 30, 2010 @ 09:21
    Richard Soeteman
    0

    No You can't use a .Net macro in an XSLT Macro.

  • Dibar 92 posts 74 karma points
    Aug 05, 2010 @ 02:24
    Dibar
    0

    To be clearer, you can't just insert umbraco macro code from a template or richtext html into your xslt. This has to do with when & where umbraco expects to be handling its own macros. But, you can easily access a .NET control from Xslt when used as an xslt extension. I couldn't find any particularly good link on how to do it, but there are some forum posts that will get you started if you search "xslt extension". 

    Then you can attach whatever parameters you want to your Xslt calling umbraco macro, and the xslt can pass the parameters to your control for its response.

Please Sign in or register to post replies

Write your reply to:

Draft