G
Guest
When I put asp controls inside the LoginView it removes the codebehind
references so that the page will not build. For example:
<asp:LoginView ID="LoginView" runat="server" >
<LoggedInTemplate>
<asp:LoginName id="loginName" runat="server" FormatString="You
are logged in as: {0} | " />
<asp:LoginStatus id="loginStatus" runat="server"
LogoutText="logoff" />
<br />
<asp:Label ID="pageContentIsAuth" runat="server" >
Proceed to <a href="/members/">members section</a> <br />
</asp:Label>
</LoggedInTemplate>
</asp:LoginView>
The LoginName, loginStatus, pageContentIsAuth control references in code
behind pagename.aspx.designer.vb are removed, but if copy them outside of the
control such as:
<asp:LoginView ID="LoginView" runat="server" >
<LoggedInTemplate>
Removed Controls
</LoggedInTemplate>
</asp:LoginView>
<asp:LoginName id="loginName" runat="server" FormatString="You are logged in
as: {0} | " />
<asp:LoginStatus id="loginStatus" runat="server" LogoutText="logoff" />
<br />
<asp:Label ID="pageContentIsAuth" runat="server" >
Proceed to <a href="/members/">members section</a> <br />
</asp:Label>
then the controls are added back to pagename.aspx.designer.vb and the page
is able to compile. I've read that you can embed controls with the LoginView
control. Is this true? If so, what do I need to do work around this issue?
references so that the page will not build. For example:
<asp:LoginView ID="LoginView" runat="server" >
<LoggedInTemplate>
<asp:LoginName id="loginName" runat="server" FormatString="You
are logged in as: {0} | " />
<asp:LoginStatus id="loginStatus" runat="server"
LogoutText="logoff" />
<br />
<asp:Label ID="pageContentIsAuth" runat="server" >
Proceed to <a href="/members/">members section</a> <br />
</asp:Label>
</LoggedInTemplate>
</asp:LoginView>
The LoginName, loginStatus, pageContentIsAuth control references in code
behind pagename.aspx.designer.vb are removed, but if copy them outside of the
control such as:
<asp:LoginView ID="LoginView" runat="server" >
<LoggedInTemplate>
Removed Controls
</LoggedInTemplate>
</asp:LoginView>
<asp:LoginName id="loginName" runat="server" FormatString="You are logged in
as: {0} | " />
<asp:LoginStatus id="loginStatus" runat="server" LogoutText="logoff" />
<br />
<asp:Label ID="pageContentIsAuth" runat="server" >
Proceed to <a href="/members/">members section</a> <br />
</asp:Label>
then the controls are added back to pagename.aspx.designer.vb and the page
is able to compile. I've read that you can embed controls with the LoginView
control. Is this true? If so, what do I need to do work around this issue?