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

Forums / Developing with Sitefinity / Get Previous Page ID

Get Previous Page ID

4 posts, 0 answered
  1. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    25 Aug 2010
    Link to this post
    Hey,
    I have a page which has a left navigation. This page has a news control and a left navigation as well. On click of a particular news, I need to send the user to another page to view the news, but the left navigation should not be changed and should be of the previous page.

    Kindly help in this

    Regards,
    Siddesh Kapadi
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Aug 2010
    Link to this post
    Hello Siddesh Kapadi,

    If you use RadPanelBar or any of the navigation RadControls you can set the page ID or node text as e.Item.Value inside ItemDataBound event. Then inside DataBound event get the menu/panel/tab item value and select the item by calling .Selected property. You could set key pairs using a public property only for the items on which you have NewsView controls.

    Best wishes,
    Ivan Dimitrov
    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. Siddesh Kapadi
    Siddesh Kapadi avatar
    239 posts
    Registered:
    09 Oct 2009
    29 Aug 2010
    Link to this post
    Hey Ivan,
    I have created a custom control and am not using any rad controls. Also, I need to know the user is coming from which page and what is the state of the left navigation on the previous page which can be dynamic across website, but the news control page may remain the same for entire site.

    Regards,
    Siddesh Kapadi
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Aug 2010
    Link to this post
    Hello Siddesh Kapadi,

    You can pass some data to the QueryString key which will help you to identify the previous page in your custom control.

    All the best,
    Ivan Dimitrov
    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
Register for webinar
4 posts, 0 answered