Copied to clipboard

Flag this post as spam?

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


  • Rob Stevenson-Leggett 38 posts 110 karma points
    Feb 25, 2010 @ 14:04
    Rob Stevenson-Leggett
    0

    Page life cycle and umbraco macros

    Hi,

    I'm trying to get the Id from a hidden input in an xslt extension. However, the value of this input is blank because the macro seems to evaluate before OnInit, Render, OnPreRender or OnLoad where I am setting the value (I have overridden the umbraco.presentation.masterpages._default).

    At what point are macro's evaluated in the page lifecycle and where in the lifecycle can I set my hidden input value in order for the control to have a value when the xslt calls my extension function?

    Any ideas greatly appreciated!

    Regards,

    Rob

  • Rob Stevenson-Leggett 38 posts 110 karma points
    Feb 25, 2010 @ 14:04
    Rob Stevenson-Leggett
    0

    I should say the input has runat="server"

  • Rob Stevenson-Leggett 38 posts 110 karma points
    Mar 01, 2010 @ 15:44
    Rob Stevenson-Leggett
    0

    I've got around this by sticking the string in HttpContext.Items which works a treat.

    For clarification the string value stored in the input is used to identify a page loaded by an ajax request which is initialised using jquery.

    Cheers,
    Rob

  • 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