Global:Request.OriginalString

Version: - string  

Summary

Returns the original url like this: http://doc.dynamicweb-cms.com/Default.aspx?ID=204

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Global:Request.OriginalString")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if string has a value

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