Global:Request.Query
Version: 8.6.1 globalvalueSummary
Returns any query information included in the specified URI like this: ?ID=21&M=News&PID=1296&NewsID=7.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetGlobalValue("Global:Request.Query")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Request.Query"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetGlobalValue("Global:Request.Query");
}
Outputting the template tag
<!--@Global:Request.Query-->
Check if globalvalue has a value
<!--@If Defined(@Global:Request.Query)-->
Let's output this tag here: <strong><!--@Global:Request.Query--></strong>
<!--@EndIf(@Global:Request.Query)-->