How to find the current page and query string parameters

Posted by Community Admin on 05-Aug-2018 20:50

How to find the current page and query string parameters

All Replies

Posted by Community Admin on 11-Apr-2011 00:00

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

Posted by Community Admin on 11-Apr-2011 00:00

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

This thread is closed