Go to DotNetFunda.com
 Welcome, Guest!  
LoginLogin  
Take a break and be productive! read technical jokes.
 Skip Navigation Links
<<= Please see left side tutorials menu.

Silverlight Tutorials | Report a Bug in the Tutorial

Interesting?   Bookmark and Share

asp:LoginStatus control
LoginStatus control is a very simple and compact control that displays either Login (if user is not nog logged in) or Logout (if user is logged in).
 
LoginStatus control is a very simple and compact control that displays either Login (if user is not nog logged in) or Logout (if user is logged in). When Login link is clicked, it automatredirects Internally, When it is rendered on the page, it is implemented through <table></table> HTML tag.

Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <table, tr, td/> tag.

DEMO : LoginView Show Source Code
Welcome, Guest Login For working example, Please visit or Download.
                    
// LoginView Control ////////////////////////////          
<asp:LoginView ID="LoginView1" runat="Server">
    <AnonymousTemplate>
        <span style="font-family: Arial; font-size: 10pt;">Welcome, Guest
            <asp:LoginStatus ID="LoginStatus1" runat="Server" />
        </span>
    </AnonymousTemplate>
    <LoggedInTemplate>
        Welcome,
        <asp:LoginName ID="LoginName1" runat="Server" />
        <asp:LoginStatus ID="LoginStatus1" runat="Server" />
    </LoggedInTemplate>

                    




About Us | Contact Us | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)