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.
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?
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.
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
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.
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.
is working on a reply...