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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...