<asp:LoginView ID=”LoginView2” Runat=”server”> <AnonymousTemplate>Guest, Please log in</AnonymousTemplate> <LoggedInTemplate>
<asp:LoginName ID=”LoginName1” Runat=”server” /> </LoggedInTemplate>
</asp:LoginView>
Finally, to validate the site layout, you added a contentplaceholder control. This control is where the actual content will appear on other pages.
<asp:contentplaceholder id=”cphMain” runat=”server”></asp:contentplaceholder>
The change you made to the default page was to add the hookup to the master page and change the title to Home.
<%@ Page Language=”VB” MasterPageFile=”~/Main.master” Title=”Home” %>
For the Login page, you changed the title, added the Content control, and hooked it up with the contentplaceholder you added on the master page. This is where you allow content to be added throughout the site.
Inside the Content control, you placed a Login control, and it was displayed in the appropriate location on the page. The Login control has all of the logic you need built in.
<%@ Page Language=”VB” MasterPageFile=”~/Main.master” Title=”Login” %> <asp:content ContentPlaceHolderID=”cphMain” Runat=”server”>
<asp:Login ID=”Login1” runat=”server”> </asp:Login>
</asp:content>
For the Change Password page, you changed the title, added the Content control, and hooked it up with the contentplaceholder you added on the master page.
Inside the Content control, you placed the ChangePassword control, and it was displayed in the appropriate location on the page. The ChangePassword control has all of the logic you need built in.
<%@ Page Language=”VB” MasterPageFile=”~/Main.master” Title=”Change Password” %> <asp:Content ContentPlaceHolderID=”cphMain” Runat=”server”>
<asp:ChangePassword ID=”ChangePassword1” Runat=”server”> </asp:ChangePassword>
</asp:Content>
For the Create New User page, you changed the title, added the Content control, and hooked it up with the contentplaceholder you added on the master page.
Inside the Content control, you placed the CreateUserWizard control, and it was displayed in the appropriate location on the page. The CreateUserWizard control has all of the logic you need built in.
<%@ Page Language=”VB” MasterPageFile=”~/Main.master” Title=”Create New Account” %> <asp:Content ContentPlaceHolderID=”cphMain” Runat=”server”>
<asp:CreateUserWizard ID=”CreateUserWizard1” Runat=”server”>