Copied to clipboard

Flag this post as spam?

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


  • bev0 39 posts 59 karma points
    Dec 08, 2010 @ 18:07
    bev0
    0

    how to call a macro in a template using .net

    i'm using umbraco 4.5, i need to do a .net inline Response.Redirect in a template. i have a macro that return a string which is an URL. the Response.Redirect will pick up that URL string and work upon it.

    my current problem is, i can't call the macro using .net code, here is what i have so far.

    <%
    lImgUri = umbraco.library.RenderMacroContent("<umbraco:Macro Alias="" macroAlias=""FilmMediaImage"" runat=""server""></umbraco:Macro>", lPageId)
    %>

    the above line used to work in umbraco 4.0 but in 4.5 it stopped working. it can be as easy as some syntax change on that line but i can't seem to figure it out.

    any comment/suggestion/advice will be utmost appreciated! please help

     

     

Please Sign in or register to post replies

Write your reply to:

Draft