How to find the current page and query string parameters - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

How to find the current page and query string parameters

  • How to find the current page and query string parameters
  • HI,

    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...

    http://SERVER_NAME/PageGroup1/PageGroup2/Page/1234/Test

    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.

    Thanks,
    Duneel
  • 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.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>