Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / User Control Current Pages Info

User Control Current Pages Info

2 posts, 0 answered
  1. Paul Berger
    Paul Berger avatar
    61 posts
    03 Apr 2006
    09 Dec 2006
    Link to this post
    Hi Guys

    I know I am jumping ahead a bit here but I just need this for some work I am doing currently.

    If I create a user control how can I find out the info on the current page?

    Also If I am using user controls and want to precompile my website before I release it will there be any Issues with that?
  2. Bob
    Bob avatar
    330 posts
    24 Sep 2012
    11 Dec 2006
    Link to this post
    Hi Paul,

    It depends on what kind of info you need - for general information you can use the SiteMap.CurrentNonde. For more information please refer to http://msdn2.microsoft.com/en-us/library/system.web.sitemap.currentnode.aspx

    For Sitefinity specific information you need to reference the Telerik.Cms assembly and cast the Page property of your control to Telerik.Cms.Web.InternalPage .

    I hope this helps.

    Kind regards,
    the telerik team
2 posts, 0 answered