Copied to clipboard

Flag this post as spam?

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


  • Amit 6 posts 26 karma points
    Aug 21, 2012 @ 12:55
    Amit
    0

    communication bettween two macros(.ascx)

    Hi all,

    I have two macros refering to two .ascx controls respectively in a single template...I just want to pass few integers or string values from one macro(.ascx) to other....Is there any API to handle this or suggest any other way to solve this requirement.

    Thanks,...Amit

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 21, 2012 @ 13:56
    Lee Kelleher
    0

    Hi Amit,

    You have a couple of options.  To share data between user-controls, you could temporarily store it in a "Request.Item" - which would be available for the rest of the page's life-cycle. Or if you needed it for longer, then could store in the cache?

    Cheers, Lee.

  • cchehn 28 posts 69 karma points
    Mar 12, 2013 @ 15:36
    cchehn
    0

    Lee,

    Can you elaborate on your answer with some links to resources?  I have a dozen user controls that rely on event bubbling for cross container communication but this does not work when I converted them to Marcos.

    Thanks,

    -C.

Please Sign in or register to post replies

Write your reply to:

Draft