Global:Pageview.Url

globalvalue  

Summary

Returns the URL as typed in the browser - the search friendly URL, i.e. /da-DK/Frontpage.aspx.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGlobalValue("Global:Pageview.Url")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:Pageview.Url"); }

Outputting the template tag

<!--@Global:Pageview.Url-->

Check if globalvalue has a value

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