The ChangePassword control As its name implies, the ChangePassword control lets a logged-in user change her password. Unlike other pages you ve created in this chapter, a Change Password page applies only to logged-in users. An anonymous user can create an account and password, using the CreateAcct.aspx page described earlier. An anonymous user can also recover a lost password, assuming he or she has set up an account in the past and has simply forgotten their password. That user would access the RecoverPassword.aspx page to get their password. But again, you won t be able to really put RecoverPassword.aspx to the test until after the site is on a Web server. Because only logged-in users can change their password, you can put the page that allows password changes into the protected MemberPages folders. The other pages described in this chapter, CreateAcct.aspx, Login.aspx, and RecoverPassword.aspx, need to be in the root folder, or some other folder to which anonymous users have access. To put the ChangePassword.aspx page in the MemberPages folder, rightclick that folder name in Solution Explorer and choose Add New Item as shown in Figure 7-18. In the Add New Item dialog box that opens, be sure to choose Web Form. I named my page ChangePassword.aspx, but you can name yours as you see fit. As with any page, you can add text, tables, pictures, or whatever to make it look however you like. The only control you must add to the page is a ChangePassword control. Just drag that control name from the Login category of the Toolbox onto the page, as shown in Figure 7-19. Figure 7-18: About to add a new page to the Member Pages folder. Chapter 7: Working with ASP.NET Controls 145
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision virtual web hosting services