Copied to clipboard

Flag this post as spam?

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


  • Jed 55 posts 80 karma points
    Dec 09, 2011 @ 16:58
    Jed
    0

    asp login name into macro

    I'd like to use the current user's 'asp login name' in a .net macro placed in a template. I'm thinking of something like:

    <umbraco:Macro Alias="macroAlias" runat="server" userName="<% =someFunction() %>"></umbraco:Macro>

    or

    <umbraco:Macro Alias="macroAlias" runat="server" userName="<asp:LoginName />"></umbraco:Macro>

    but I have been unable to find the correct syntax to do this. Any ideas?

     

Please Sign in or register to post replies

Write your reply to:

Draft