Your shopping cart is empty!
In Solution Explorer, double-click the Site.master page and switch to Design view.
From the Standard node of the Toolbox, drag a Hyperlink control to the master page and drop it next to the Log In hyperlink.
For this part of the walkthrough, it does not matter where you put the Hyperlink control.
In the Properties windows, change the Text property to Change Password. You can accept the default ID.
In the Properties window, click NavigateUrl and click the ellipsis (...) button.
The Select URL dialog box is displayed.
Under Project folders, click Account.
Under Contents of folder, select ChangePassword.aspx and then click OK.
Press CTRL+F5 to run the page.
Notice that the Change Password link is accessible when you are not logged in.
Click Change Password.
You are redirected to the login page because the change-password page is accessible to authenticated users only.
Enter the user name and password that you created earlier, and then click Log In.
The change-password page is displayed.
Click Log Out.
When you are returned to the home page, close the browser.
Next, you will modify the Change Password hyperlink to make it accessible only to users are logged in. You do this by adding the hyperlink to the HeadLoginView control on the master page.
In Solution Explorer, double-click Site.master.aspx to open it, and then switch to Design view.
Delete the Change Password hyperlink that you created earlier.
Switch to Source view.
From the Standard node of the Toolbox, drag a HyperLink control into the LoggedInTemplate element that is inside the LoginView control.
Set the Text property to Change Password.
After the runat="server" attribute, type "NavigateUrl=" and then double-click Pick URL… from the pop-up list.
The Select Project Item dialog box is displayed.
Under Contents folder, select ChangePassword.aspx and then click OK.
The markup for the hyperlink will resemble the following: