IContent and IPublishedContent return null for the other tabs properties
I am having two tabs in the page. when I trying to access the properties using IContent and IPublishedContent, I am able to access the properties of the first tab but for second tab property its returning null.
Can anyone suggest how I should I access my second tab properties while iterating?
foreach (IContent local in localsNode.Children()){
// Getting null for the second tab property
var questionInsight = local.Properties["questioninsight"].Value.ToString();}
IContent and IPublishedContent return null for the other tabs properties
I am having two tabs in the page. when I trying to access the properties using IContent and IPublishedContent, I am able to access the properties of the first tab but for second tab property its returning null.
Can anyone suggest how I should I access my second tab properties while iterating?
Hi Manoj
There is no difference what tab are you using, try to get values as for the first tab.
You need only property alias for getting the data from the property.
Thanks,
Alex
Hi Manoj
Did you fix the issue? Can you share with our community?
Thanks,
Alex
Hi Alex,
Yes, i was able to retrieve the other tabs as the child element of the node.
Thanks for your suggestion...
is working on a reply...