Global:Pageview.Url.Raw

Version: - globalvalue  

Summary

Returns the URL as interpreted by Dynamicweb - i.e. /Default.aspx?ID=204.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGlobalValue("Global:Pageview.Url.Raw")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if globalvalue has a value

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