Blog
    C#
    ADO.Net
    .NET
    ASP.Net & Web Forms
    Custom Controls
    Web Development
    Exception Handling
    XML
    Database
    Security in .Net
    Testing
    Web Services
    Windows Services
    Windows Controls
    WCF
    AJAX
    WPF
    XAML
    Reporting
    Setup
    VB.Net
    LINQ
    JQuery
    SilverLight
    JavaScript
    HTML5
    Crystal Report
    Cloud Computing
    Share Point
    Visual C++
    MVC
    Android
    PHP
    Java
    HTML
    WordPress
    Joomla
    Products
    Drupal
    Windows Phone
    JSON
    LightSwitch
    iPhone/iPad
    Ruby on Rails
    IIS 7
    Windows 8
    CSS/CSS3
    Excel
    MS Access
    Shortcut Keys
    Visual SourceSafe
    Team Foundation Server
    API(s)
    Sencha-Touch
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Top Contributor
Advertisement
Advertise with Us
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
 

Home >> ASP.Net & Web Forms >> Login Status Control in ASP.NET 3.5
Login Status Control in ASP.NET 3.5

Login Status Control
Views: 24364     Comments: 3
by Uttam Misra on 12/2/2010

Login Status Control in ASP.NET 3.5

The Login Status control displays a login link for users who are not authenticated and a logout link for users who are authenticated. The login link takes the user to a login page. The logout link resets the current user's identity to be an anonymous user.

You can customize the appearance of the Login Status control by setting the Login Text and Login Image Url properties. The login link automatically redirects to the configured login page, and the logout link automatically calls the method Form Authentication. Sign Out for logging off the user.

<asp:LoginStatus ID="LoginStatus1" runat="server"
LoginText="Log In"
LogoutText="Log Out"
LogoutPageUrl="~/Home.aspx"
LogoutAction="Redirect"
onloggedout="LoginStatus1_LoggedOut" />

Login Status control properties:

  • Login Text The text displayed if the user is not signed in.
  • Login Image Url A URL for an image displayed as an icon for the login link.
  • Logout Text The text displayed if the user is authenticated.
  • Logout Image Url A URL for an image displayed as an icon for the logout link.
  • Logout Action Configures the action the control performs if the user clicks the logout link that is displayed when the user is authenticated. Valid options are Refresh, Redirect, and Redirect To Login Page. The first option just refreshes the current page, the second option redirects to the page configured in the Logout Page Url , and the last option redirects to the login page.
  • Logout Page Url A page to redirect to if the user clicks the logout link and the Logout Action is set to Redirect.

Login Status Control in ASP.NET 3.5
by Arun Singh on 10/13/2011
This is nice stuff !
Thanks
Report Abuse

problem
by Subhanjan Ghosh on 5/7/2013
Hi Sir,

I am Facing the problem during the validation of the pages so that nobody could visit the pages if they are not logged in and I want to take the row values of the RadGrid in the other page textboxes with using some specific buttons like update, payment etc. , and those buttons should be outside of the RadGrid.

Eg: If I click any row and select update button then the values of the row will come to the text boxes of the update page and same as for the payment. 

So, can you help me regarding that?

Thanks,
Subhanjan Ghosh
Report Abuse

Login Status Control in ASP.NET 3.5
by Rohit Kesharwani on 5/8/2013
1) You can use web.config file to validate the pages by defining roles for the page. In this case the roles you define for the page, only that user roles can access your page and no anonymous user or role can visit your page.

2)If you want to move the grid row values to other pages, then on the click of row content or control you also have to pass the row values to that page.
Report Abuse
Title :  
Comment :
Text ColorBackground Color
BoldItalicUnderline
LeftCenterRightJustify
Ordered ListBulleted List
IndentOutdent
Horizontal Rule
SubscriptSuperscript
HyperlinkImage
Design ModeDesign
View HtmlHtml
       
 
Report Abuse Form
Reason:    
 
Latest ArticleRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Latest Blogs by Uttam MisraRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Top Viewed ArticlesRSS Feed
    
    
    
    
    
    
    
    
    
    
Top Viewed BlogsRSS Feed
    
    
    
    
    
    
    
    
    
    
Latest Interview QuestionsRSS Feed
    
    
    
    
    
    
    
    
    
    
More...
Total Online Users: 2687
  
Copyright © 2013MindStick. All Rights Reserved.