Login Controls[4]->LoginStatus

The LoginStatus control automatically detects the user's authentication status and displays the appropriate Login/Logout option. Clicking on the Login button will redirect the user to the login page for the website. The LoginStatus control will retrieve the login page URL from the web.config file forms authentication section. Clicking on the Logout button will clear the user's authentication status and by default refresh the page that they are currently viewing. The LoginStatus control can display the Login/Logout options as link buttons or image buttons.

LoginStatus Sample

This sample shows the basic functionality of the LoginStatus control.

C# LoginStatus
Run Sample View Source

posted on 2007-05-14 10:05  改变热爱  阅读(287)  评论(0)    收藏  举报

导航