More in this section
Forums / Deployment / Show Path Example - Problem with SF

Show Path Example - Problem with SF

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Paul Kavanagh
    Paul Kavanagh avatar
    13 posts
    Registered:
    05 Oct 2005
    24 Jan 2007
    Link to this post
    Hi,
    Great example at http://www.telerik.com/community/forums/thread/b311D-eaged.aspx for what I want to do. That is, highlight the root parent of the page I am on. Problem with the example is the following code that is put in the page load event to call the showpath method:

    Dim clickedItem As RadMenuItem = Menu1.FindItemByUrl(Request.Url.PathAndQuery)

    The Request.Url.PathAndQuery comes back only as default.aspx with the querystring. Assume this is due to URL rewriting for friendly urls. So, how do I get the friendly url for the page we are on to compare with the menu item data for the same page?

    Thanks,

    Paul
  2. Bob
    Bob avatar
    330 posts
    Registered:
    30 Dec 2016
    25 Jan 2007
    Link to this post
    Hi Paul,

    Here are a couple of ways to accomplish this:

    1. System.Web.SiteMap.CurrentNode.Url

    1. Request.RawUrl

    There are also other ways to do the same, but they wouldn’t be so convenient.

    Regards,

    Bob
    the telerik team
  3. Paul Kavanagh
    Paul Kavanagh avatar
    13 posts
    Registered:
    05 Oct 2005
    25 Jan 2007
    Link to this post
    Thanks, perfect, works like a charm!
3 posts, 0 answered