Global:Request.Url
Version: 8.6.1 globalvalueSummary
Returns information about the URL of the current request 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.Url")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Request.Url"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetGlobalValue("Global:Request.Url");
}
Outputting the template tag
<!--@Global:Request.Url-->
Check if globalvalue has a value
<!--@If Defined(@Global:Request.Url)-->
Let's output this tag here: <strong><!--@Global:Request.Url--></strong>
<!--@EndIf(@Global:Request.Url)-->