Login information about user.

Last post 09-08-2008 1:45 PM by macupryk. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-06-2008 4:25 AM

    • macupryk
    • Top 25 Contributor
    • Joined on 08-03-2008
    • Wannabe Slacker
    • Points 862

    Login information about user.

    if u go to omegalove.com and type in username macupryk and password cupryk

    it will take u to the profile page. I was wondering because I put the login view to not visible. How can I

    setup the user's name and things. 

    For example

    Logout Bookmarks -->Settings Mathieu Cupryk

     

     

     

     

     

     

     

    if

     

    (!Page.IsPostBack)

    {

     

     

    // Display the number of users currently online

    NumOnline.Text =

     

    Membership

    .GetNumberOfUsersOnline().ToString();

     

    }

     

     

    if

    (!Page.User.Identity.IsAuthenticated)

    {

     

     

    // The FindControl method will pass back an instance of Control class

     

     

    Control masterPageControl = Page.Master.FindControl("LoginView1"

    );

     

     

    LoginView masterPageLoginView = masterPageControl as LoginView

    ;

    masterPageLoginView.Visible =

     

    false

    ;

  •  Advertisement

    Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.

     
  • 09-08-2008 11:40 AM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Wannabe Slacker
    • Points 15,067

    Re: Login information about user.

     yes, it is right. Because the LoginView has two settings:

    annyoumous

    and loggedin

    when user is logged in, it will automatically show the user information as you set up in the loggedin template.

  • 09-08-2008 1:45 PM In reply to

    • macupryk
    • Top 25 Contributor
    • Joined on 08-03-2008
    • Wannabe Slacker
    • Points 862

    Re: Login information about user.

     This is Resolved. Excellent work.

     

Page 1 of 1 (3 items)