Why does this demo using Response.ApplyAppPathModifier(Request.Url.PathAndQuery)?

9 posts, 1 answers
  1. louis chan
    louis chan avatar
    51 posts
    Member since:
    Feb 2010

    Posted 23 Apr 2010 Link to this post

    Hi,
    I am considering which approach should I use to make a menu navigation bar - sitemapdatasource or using the query string.
    My menu bar is dynamically generating menu base on row data in my database table.
    This demo is using Response.ApplyAppPathModifier(Request.Url.PathAndQuery) but I have seen there is an action to change those tabs.

    Dim tab As RadTab = RadTabStrip1.FindTabByUrl(urlWithSessionID)
    If Not IsNothing(tab) Then
       tab.SelectParents()
       tab.PageView.Selected = True
    End If


    so why do we need Response.ApplyAppPathModifier(Request.Url.PathAndQuery) here? I hope this will also help me develop my dynamically generating menu bar. Thx!
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 23 Apr 2010 Link to this post

    Hi louis chan,

    We used that method to overcome a problem when you are in a cookieless mode and a session id is added in the URL.

    All the best,
    Veskoni
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. louis chan
    louis chan avatar
    51 posts
    Member since:
    Feb 2010

    Posted 23 Apr 2010 Link to this post

    Hi Veskoni ,
    Thx for the reply! Does this sample mean if I go to another page but the the master page contains this tabstrip, then the tab will be selected?
  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 26 Apr 2010 Link to this post

    Hello louis chan,

    In Page_Load of the master page you just need to find the selected tab and then select the parents. The tricky part is to find the correct tab - we use FindTabByUrl.

    Regards,
    Veskoni
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. louis chan
    louis chan avatar
    51 posts
    Member since:
    Feb 2010

    Posted 26 Apr 2010 Link to this post

    Hi Veskoni ,
    Yup, but one thing that is needed to be concerned. Let's take telerik as an example. The community and it's post is under "Developer Productivity", how could u determine this tab should be selected?

    Best Regards.
  6. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 29 Apr 2010 Link to this post

    Hello louis chan,

    Didn't the FindTabByUrl help? You find the tab by the url of the current request and select it.
    That is all. Am I missing something?

    All the best,
    Veskoni
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. louis chan
    louis chan avatar
    51 posts
    Member since:
    Feb 2010

    Posted 04 May 2010 Link to this post

    Hi Veskoni,
    May be I misunderstand yr meaning. Let me introduce my situration.
    > Home (URL=http://abc.com)
      >Forum (URL=http://abc.com/forum/)
        >Top 5 Topics (URL=http://abc.com/topic5/)

    Top 5 Topics is a page and under forum tab. If I directly go to Top 5 Topics, Forum tab should be selected. As a result http://abc.com/topic5/ is not equal to http://abc.com/forum/ . How could I select Forum in this case if user goes to top 5 topics?

    Thx!
  8. louis chan
    louis chan avatar
    51 posts
    Member since:
    Feb 2010

    Posted 07 May 2010 Link to this post

    Hey guys! I want to draw u guys attention because I want to know how to implement my situration in common ways. Thx!
  9. Answer
    Yana
    Admin
    Yana avatar
    5043 posts

    Posted 07 May 2010 Link to this post

    Hi Louis Chan,

    We don't know exactly how the connection between "Top 5 Topics" page and its parent "Forum" is implemented in your case, may be there is some way to find the parent of "Top 5 Topics" when you know that it's clicked. Can you clarify the situation please?

    Best regards,
    Yana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top