DWExtranetPassword
Version: - stringSummary
Returns the user's extranet password.
Settings
The value is generated automatically based on a cookie saved on the user's computer on a previous visit.
Remarks
Returns the password 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("DWExtranetPassword")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("DWExtranetPassword"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("DWExtranetPassword");
}
Outputting the template tag
<!--@DWExtranetPassword-->
Check if string has a value
<!--@If Defined(@DWExtranetPassword)-->
Let's output this tag here: <strong><!--@DWExtranetPassword--></strong>
<!--@EndIf(@DWExtranetPassword)-->