Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete 213 posts 285 karma points
    Jul 18, 2013 @ 17:23
    Pete
    0

    Gridview problem

    I'm trying to render some nodes with custom properties using the code below, but it throws an error, if I remove the custom properties it works ok.

    var searchString = "SubPage";
    var rootNode = uQuery.GetRootNode();
    var foundNodes = rootNode.GetDescendantNodes().Where(x => x.NodeTypeAlias == searchString).ToList();
    gridLocal.DataSource = foundNodes;
    gridLocal.DataBind();


    A custom property would be "Holiday Travel Dates", the alias would be "holidayTravelDates". I tried holidayTravelDates also but it still didn't find it.

    <%# Eval("Holiday Travel Dates")%>


    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft