Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > how to get current url as a string in code. View modes: 
User avatar
Member
Member
deepanshp-gmail - 2/8/2011 1:04:53 AM
   
how to get current url as a string in code.
please tell how to get current url in code.

User avatar
Member
Member
kentico_michal - 2/8/2011 3:00:18 AM
   
RE:how to get current url as a string in code.
Hi,

You can try to use following code to get current url:

CMS.GlobalHelper.UrlHelper.CurrentURL

More information about API can be found in API reference

Best regards,
Michal Legen