How to Access Macro Parameter with C# server side code
I am on Umbraco 7.4.2 and I have built a macro for my users with a single parameter.
Now the partial has a Kendo Grid on it and what I want to do to build the grid with data based on the macro parameter that the users select.
I know how to access the parameter with razor but I want to access the parameter from my C# server side controller.
How to Access Macro Parameter with C# server side code
I am on Umbraco 7.4.2 and I have built a macro for my users with a single parameter. Now the partial has a Kendo Grid on it and what I want to do to build the grid with data based on the macro parameter that the users select. I know how to access the parameter with razor but I want to access the parameter from my C# server side controller.
If you can help, please advise.
Thanks
Tom
You can pass the Macro Parameter from your MacroPartial to the controller method as a Parameter.
View:
Controller Method:
If your controller is in a plugin then you will need to include the area in your args on the view as well...
is working on a reply...