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