+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / Getting Page Names Programatically

Getting Page Names Programatically

2 posts, 0 answered
  1. Jon
    Jon avatar
    41 posts
    Registered:
    20 Oct 2010
    29 Nov 2010
    Link to this post
    Hi,
         I'm trying to get the Parent and Child page names in a project programatically however, the properties of the PageNode object does not return page names. It returns a bunch of non-related strings .. Please see 4 lines of code below. Does the API not return page names ? The property is there. Please advise on how to return page names. Thanks in advance , Jon 

    var pages = App.WorkWith().Pages().Get().ToList();

    foreach (PageNode pn in pages)

    {

        Response.Write(pn.Name);

    }

     




    Edit your post Reply

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Nov 2010
    Link to this post
    Hello Jon,

    Please refer to the other post you opened where I sent a reply to you.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered