DWExtranetPasswordRemember

Version: - string  

Summary

Returns the state of the Remember password (DWExtranetPasswordRemember) 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 password exists, otherwise an empty string ("") is returned.
The value should be used to set the DWExtranetPasswordRemember checkbox.
The tag can be used for Login prompts.

Examples

Outputting the template tag

@GetString("DWExtranetPasswordRemember")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DWExtranetPasswordRemember-->

Check if string has a value

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