DWExtranetUsernameRemember

Version: - string  

Summary

Returns the state of the Remember username (DWExtranetUsernameRemember) checkbox.

Settings

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

Remarks

Returns "checked" if a saved username exists, otherwise an empty string ("") is returned.
The value should be used to set the DWExtranetUsernameRemember checkbox.
The tag can be used for Login prompts.

Examples

Outputting the template tag

@GetString("DWExtranetUsernameRemember")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DWExtranetUsernameRemember-->

Check if string has a value

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