检测用户的身份验证状态并切换某个链接的状态,以显示用户是否可以登录网站或从网站注销。

<asp:LoginStatus
????AccessKey="string"
????BackColor="color name|#dddddd"
????BorderColor="color name|#dddddd"
????BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
                 Inset|Outset"
????BorderWidth="size"
????CssClass="string"
????Enabled="True|False"
????EnableTheming="True|False"
????EnableViewState="True|False"
????Font-Bold="True|False"
????Font-Italic="True|False"
????Font-Names="string"
????Font-Overline="True|False"
????Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
               Large|X-Large|XX-Large"
????????Font-Strikeout="True|False"
????Font-Underline="True|False"
????ForeColor="color name|#dddddd"
????Height="size"
????ID="string"
????LoginImageUrl="uri"
????LoginText="string"
????LogoutAction="Refresh|Redirect|RedirectToLoginPage"
????LogoutImageUrl="uri"
????LogoutPageUrl="uri"
????LogoutText="string"
????OnDataBinding="DataBinding event handler"
????OnDisposed="Disposed event handler"
????OnInit="Init event handler"
????OnLoad="Load event handler"
????OnLoggedOut="LoggedOut event handler"
????OnLoggingOut="LoggingOut event handler"
????OnPreRender="PreRender event handler"
????OnUnload="Unload event handler"
????runat="server"
????SkinID="string"
????Style="string"
????TabIndex="integer"
????ToolTip="string"
????Visible="True|False"
????Width="size"
/>

Expand 图像备注

Expand 图像示例

Expand image请参见