Link to home
Start Free TrialLog in
Avatar of Andy Green
Andy GreenFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Set label value in LoginView

Hi

I have a loginview control with a LoggedInTemplate. This template has a few lablels controls, but when I try to use them like - me.lblLastloggedIn I get an error.

How do I target these controls. Attached is a section of my login view.

<asp:LoginView ID="LoginView" runat="server">
        
        <LoggedInTemplate>
            <div class="blue">
                    <fieldset>
                        <legend><asp:Image ID="imgStats" runat="server" ImageUrl="~/App_Themes/Expert/Images/Reports_32.png"  Width="32px" Height="32px" CssClass="pageicons"/>Expert Stats</legend>
                        
                        <p>Logged in as:<asp:LoginName ID="LoginName" runat="server" /></p>
                        <p>Available Licences:<asp:Label id="lblLicenses" runat="server"></asp:Label></p>
                        <p>Last Logged in:<asp:Label id="lblLastLoggedIn" runat="server"></asp:Label></p>
 
                    </fieldset>
            </div> 
        
        </LoggedInTemplate>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of wht1986
wht1986
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andy Green

ASKER

Thank you