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

Page URLS

2 posts, 0 answered
  1. Annie
    Annie avatar
    46 posts
    Registered:
    11 Aug 2012
    15 Oct 2009
    Link to this post
    Hi,

    I would like to know which tables in the database stores the page URLS or do you have any sample code that I can use to retrieve all page URLS?

    Thank you
    Annie
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    15 Oct 2009
    Link to this post
    Hi Annie,

    Below is a sample code that you can use to get the static urls.

    CmsManager cManager = new CmsManager();
       var pageList = cManager.GetPages();
       foreach (ICmsPage page in pageList)
       {
           Response.Write("Page Name:" + page.MenuName + "-" "StaticURL:" + page.StaticUrl + "<br />");
       }

    You can use the same approach to get all urls by creating a list of page.Urls.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered