I have .net macro that renders a drop down the source of the dropdown is list of nodes from a given page the list is built usng linq2umbraco. When i add a macro on to template or page all works fine. however when i try to add the macro via macro container i get empty list. Also the empty validation message appears looks like its posting back?
Any ideas does macro container work with .net macros?
I have you tried debugging the .NET Macro to see if it gets the two properties and goes on to load up the nodes correctly, as well as where in the page load you hit when using the macro container?
And do you have a if(!IsPostBack) in there somewhere :)
Maybe a sample of your macro code might help resolve your issue.
Hmm, yeah this looks pretty straight forward - if there actually is a match on ParentNodeId and CountryStartNode :)
Is the DataContext actually initialized? That would be my best bet if you said the list is empty and there is a match on ParentNodeId == CountryStartNode.
macro container issue with .net macro
I have .net macro that renders a drop down the source of the dropdown is list of nodes from a given page the list is built usng linq2umbraco. When i add a macro on to template or page all works fine. however when i try to add the macro via macro container i get empty list. Also the empty validation message appears looks like its posting back?
Any ideas does macro container work with .net macros?
Regards
Ismaill
Comment author was deleted
Type of macro shouldn't mather, are you using any custom macro paramater types?
Tim,
The macro has 2 properties both content pickers.
Cheers
Ismail
Hi Ismail,
I have you tried debugging the .NET Macro to see if it gets the two properties and goes on to load up the nodes correctly, as well as where in the page load you hit when using the macro container?
And do you have a if(!IsPostBack) in there somewhere :)
Maybe a sample of your macro code might help resolve your issue.
- Morten
Morten,
I did have !IsPostBack i took that out but that still didnt work the in the macro code looks like:
Regards
Ismail
Hmm, yeah this looks pretty straight forward - if there actually is a match on ParentNodeId and CountryStartNode :)
Is the DataContext actually initialized? That would be my best bet if you said the list is empty and there is a match on ParentNodeId == CountryStartNode.
- Morten
is working on a reply...