How I can get those params into my control. I tried to use
Node.GetCurrent().GetProperty("category").Value -- but Visual Studio say that NODE element does not exists. And I do not blame it since as far as I know NODE belongs to XML and as far as VS concern I am not reading any XML in my ASCX. I just need to get those 3 parameters (in bold) into my control.
How I can get params from MACRO to custom build control
Hi guys, please do not bite my head of, I still just learning. Here is a problem. I have following on my template:
<umbraco:Macro category="Manager" city="Lincoln" state="RI" Alias="Macroinsidemacrotest" runat="server"></umbraco:Macro>
How I can get those params into my control. I tried to use
Hi All Blonde
Node is valid to retrieve properties of the current page you are viewing, however this is not the way to retrieve a parameter from your MACRO.
There is an Umbraco Free Video that outlines how to pass a value in from a MACRO to a user control and display on the page.
Hope this gets you moving forward.
Cheers, Nigel
Thank you Nigel,
that was exactly what I needed.
problem solved.
is working on a reply...