More in this section
Forums / Sitefinity SDK / How to find the current page and query string parameters

How to find the current page and query string parameters

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.
2 posts, 0 answered
  1. Duneel
    Duneel avatar
    166 posts
    08 Dec 2010
    11 Apr 2011
    Link to this post

    I have a SF Widget developed as a User Control. And I want to find out the page name containing the widget and querystring parameters. What code I have to write to find the information I need?

    My URL would be...


    The actual page is /Page and the rest coming after the page name are the query string parameters. This page resides within two page groups in sitefinity.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    11 Apr 2011
    Link to this post
    Hello Duneel,

    You need to loop through website pages and get the PageData object which has a property Controls that returns IList of PageControl - all controls on a page.

    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

2 posts, 0 answered