+1-888-365-2779
Try Now
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

2 posts, 0 answered
  1. Duneel
    Duneel avatar
    166 posts
    Registered:
    08 Dec 2010
    11 Apr 2011
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    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.

    Greetings,
    Ivan Dimitrov
    the Telerik team

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

2 posts, 0 answered