Global:Request.Scheme

Version: - string  

Summary

Returns the scheme name for this URI. Returns e.g. http if the resource is accessed through HTTP.

Find other schemes here: http://msdn.microsoft.com/en-us/library/system.uri.scheme.aspx

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Global:Request.Scheme")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Global:Request.Scheme"); }

Outputting the template tag

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

Check if string has a value

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