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