mcr.MacroAttributes.Add Not working (Web Forms user control).
I'm currently trying to render a macro from within a user control, with the ability to dynamically pass in attributes, but I can't for the life of me get the thing to work. I can get the macro to render but can't get any of the attributes to work.
I've tried a few things outlined in other posts, such as making the macro attribute lowercase (slottypegroupmappings), using mdr.Attributes.Add, and have placed the code in the OnPreRender, PageLoad and PageInit, but haven't been able to get the attributes working.
mcr.MacroAttributes.Add Not working (Web Forms user control).
I'm currently trying to render a macro from within a user control, with the ability to dynamically pass in attributes, but I can't for the life of me get the thing to work. I can get the macro to render but can't get any of the attributes to work.
This is what I have so far -
I've tried a few things outlined in other posts, such as making the macro attribute lowercase (slottypegroupmappings), using mdr.Attributes.Add, and have placed the code in the OnPreRender, PageLoad and PageInit, but haven't been able to get the attributes working.
Anyone have any ideas?
is working on a reply...