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

Forums / General Discussions / Get URL of a page

Get URL of a page

2 posts, 0 answered
  1. Zyad Rujeedawa
    Zyad Rujeedawa avatar
    31 posts
    Registered:
    18 Feb 2010
    17 Aug 2010
    Link to this post
    Hello,

    How can I get  the URL of a page by passing the page id ?

    Thanks
  2. Zyad Rujeedawa
    Zyad Rujeedawa avatar
    31 posts
    Registered:
    18 Feb 2010
    17 Aug 2010
    Link to this post
    Found the solution:

          Telerik.Cms.CmsManager cmsManager = new Telerik.Cms.CmsManager();

               

                string pageid="31F5CE00-4343-4049-9982-72B43ABFBFF9";

                Guid g = new Guid(pageid);

                Telerik.Cms.IPage currentPage = cmsManager.GetPage(g);

                Telerik.Cms.ICmsPage icmscurrentpage = ((Telerik.Cms.ICmsPage)currentPage);

                Response.Write(icmscurrentpage.DefaultUrl.Url);



    Zyad

2 posts, 0 answered