Forums
>
Users Lounge
>
Feedback, Suggestions and More
How to retrieve the URL of a current Page in DOTNETNUKe
Last Post 12/16/2011 1:51 PM by
Joseph Craig
. 3 Replies.
Author
Messages
Ramesh Narasimhan
Nuke Active Member
Posts:39
12/16/2011 8:21 AM
How to retrieve the URL of a current Page in DOTNETNUKe
Ramesh Narasimhan
Nuke Active Member
Posts:39
12/16/2011 8:32 AM
How to retrieve the URL of a current Page in DOTNETNUKe.Every time i try to find it gives default.aspx.But i actally want the Page URL which is displayed in the Navigation box of the page
Joseph Craig
DNN MVP
Posts:11667
12/16/2011 1:49 PM
Get the TabId from the URL and then get TabInfo for the tab with TabId.
Joe Craig,
Patapsco Research Group
Complete DNN Support
Joseph Craig
DNN MVP
Posts:11667
12/16/2011 1:51 PM
Or ...
"Make sure that you have the "DotNetNuke.Common" namespace referenced and jsut use:
string url = Globals.NavigateURL(TabId);
for the current page you can use "this.TabId" or the "ActiveTab.Tabid""
Joe Craig,
Patapsco Research Group
Complete DNN Support
Forums
>
Users Lounge
>
Feedback, Suggestions and More