Global:Request.Port

globalvalue  

Summary

Returns the port number of this URI.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGlobalValue("Global:Request.Port")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Request.Port"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:Request.Port"); }

Outputting the template tag

<!--@Global:Request.Port-->

Check if globalvalue has a value

<!--@If Defined(@Global:Request.Port)--> Let's output this tag here: <strong><!--@Global:Request.Port--></strong> <!--@EndIf(@Global:Request.Port)-->