DWExtranetUsername

Version: - string  

Summary

Returns the user's extranet username.

Settings

The value is generated automatically based on a cookie saved on the user's computer on a previous visit.

Remarks

Returns the username if one was previously saved, otherwise an empty string ("") is returned.
The value should be used to set the Username field.
The tag can be used for both Login and New Password prompts.

Examples

Outputting the template tag

@GetString("DWExtranetUsername")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("DWExtranetUsername"); }

Outputting the template tag

<!--@DWExtranetUsername-->

Check if string has a value

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