Personalization Using Visual Basic 2005 - Adding a Password Reminder
(Page 6 of 6 )
To add a password reminder, you must first change your existing login control to a template by clicking on the smart tag and choosing “Convert to template,” as shown in Figure 12-18.

Figure 12-18. Convert to template
The display will change to a template that you can modify. Add a link titled (for example) Recover Password, as shown in Figure 12-19.
Set theNavigateURLto the name of the page that will hold yourPasswordRecoverycontrol, then click the smart tag and choose End Editing.
Your next step, of course, is to create the new .aspx page, RecoverPW.aspx. Drag aPasswordRecovery control onto the page, and click the smart tag to choose the view you wish to edit, as shown in Figure 12-20.
Set theSuccessPageUrlproperty to Login.aspx. You may also want to confirm or change the Success Text as well as the other text fields (QuestionInstructionText,QuestionLabelText, etc.).

Figure 12-19. Adding password hyperlink to Login Template

Figure 12-20. Password Recovery control
Please check back next week for the continuation of this article.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
|
This article is excerpted from chapter 12 of the book Programming Visual Basic 2005, written by Jesse Liberty (O'Reilly, 2005; ISBN: 0596009496). Check it out today at your favorite bookstore. Buy this book now.
|
|