Global:Page.ID
Version: - globalvalueSummary
Returns the ID of the current page.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetGlobalValue("Global:Page.ID")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Page.ID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetGlobalValue("Global:Page.ID");
}
Outputting the template tag
<!--@Global:Page.ID-->
Check if globalvalue has a value
<!--@If Defined(@Global:Page.ID)-->
Let's output this tag here: <strong><!--@Global:Page.ID--></strong>
<!--@EndIf(@Global:Page.ID)-->