Global:Request.AbsoluteUri

Version: - globalvalue  

Summary

Returns the absolute url like this: http://doc.dynamicweb-cms.com/Default.aspx?ID=204.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGlobalValue("Global:Request.AbsoluteUri")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Request.AbsoluteUri"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:Request.AbsoluteUri"); }

Outputting the template tag

<!--@Global:Request.AbsoluteUri-->

Check if globalvalue has a value

<!--@If Defined(@Global:Request.AbsoluteUri)--> Let's output this tag here: <strong><!--@Global:Request.AbsoluteUri--></strong> <!--@EndIf(@Global:Request.AbsoluteUri)-->