<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderForTitleAndIntro" Runat="Server">
<table width="100%" cellpadding="2" cellspacing="0">
<tr valign="top" class="ArticleTitle">
<td style="padding-left:10px;" valign="middle">
asp:LoginView control</td>
</tr>
<tr>
<td class="ArticleContents">
LoginView control is very simple yet very powerful and customizable. It allows user to customize its view for both anonymous user and logged in user.
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderForContents" Runat="Server">
<div class="ArticleContents">
LoginView control is very simple yet very powerful and customizable. It allows user to customize its view for both anonymous user and logged in user.
Internally, When it is rendered on the page, it is implemented through <table></table> HTML tag.
<p>
Its properties like <span class="DemoCP">BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. </span>
are implemented through style properites of <table, tr, td/> tag.
</p>
<!-- START - Demo Section -->
<table class="DemoPlaceHolder" border="1" cellpadding="2" cellspacing="4">
<tr>
<td class="DemoTitle">
DEMO : LoginView
</td>
<td align="right">
<a class="DemoShowSource" href="../../misc/codeviewer/default.aspx?pagename=~/tutorials/controls/loginview.aspx" target="_blank">Show Source Code</a>
</td>
</tr>
<tr>
<td>
<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>
</asp:LoginView>
</td>
<td>
For working example, Please download <a target="_blank" href="<%= Resources.SiteConfiguration.DemoProjectUrl %>">Project 1</a>.
</td>
</tr>
<tr>
<td colspan="2">
<!-- START - Server Side Code -->
<pre>
// 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>
</pre>
<!-- END - Server Side Code -->
</td>
</tr>
</table>
<!-- END - Demo Section -->
</div>
<br />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderFooter" Runat="Server">
</asp:Content>
Go Top