The
TextStrengthDescriptions property contains a semicolon-delimited list of messages to be
displayed to the user as the password goes through the range of predefined strengths
(from very poor to excellent). This property is complemented by the PreferredPasswordLength,
which specifies the ideal length for the password and what is considered to be
excellent strength. TextStrengthDescriptionStyles is used to add styling to the strength
description presented to the user. Here you could set background colors for the description
so that a weak password can have a red background in the message and an excellent
password can have a green background or something to that effect. See Figure 8-10 to see
the preceding code in the browser.
CHAPTER 8 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 2) 187
Figure 8-10. PasswordStrength extender used to recommend a password policy to the user
While typing in the password, the user will be able to see the number of characters
remaining to achieve the excellent strength level desired for the password. The user will
also notice the strength description to the right of the password TextBox change as the
characters are typed.
Pages:
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272