Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have razor script having following code....
<script type="text/javascript"> @{ var arr = new Array[10]; var j=0; foreach (var node in Model.Children.Where("Visible")) { arr[j]=@node.UrlName; j++; } } </script>
But this is giving Error loading Razor Script getNodes.cshtml. I want to store values in array as,
['aaa-node','bbb-node','ccc-node']
So, what is the mistake in code?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
loop through nodes and store value in array
I have razor script having following code....
But this is giving Error loading Razor Script getNodes.cshtml. I want to store values in array as,
['aaa-node','bbb-node','ccc-node']
So, what is the mistake in code?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.