Search

You searched for the word(s): userid:768423

Matching Posts

  • Re: Get UserID of another user

    ahhhh now I feel stupid... I was trying to cast an object and try to get it from that... Thanks very much. I'm learning! (slowly) - SuperSharp
    Posted to Security (Forum) by SuperSharp on 11/18/2007
  • Get UserID of another user

    Hi, I was just wondering how to go about getting the 'UserID' of another user using their 'Username'. I need to use this in my admin section and can't figure it out. Getting the current users ID is simple: Membership.GetUser().ProviderUserKey() It's just getting another users I am having problems with. Could anyway give me some advice? Thanks very much, SuperSharp
    Posted to Security (Forum) by SuperSharp on 11/18/2007
  • Re: Last login date issue

    Hello, I tried the database update and it was still doing the same thing. I added the code to the 'LoggingIn' event and it works perfectly! Thank you so much for all your help with this and also to you too cheetahtech :) You guys have saved me! I owe you one. - SuperSharp
    Posted to Security (Forum) by SuperSharp on 11/9/2007
  • Re: Last login date issue

    It seems the 'LastLoginDate' is updated before we add it to the session veriable. I tried several times, and both the current 'LastLoginDate' and the session veriable we created have the same date/time.Would this mean it would need to be created before the authenticate stage? Thanks for your help on this :) E.
    Posted to Security (Forum) by SuperSharp on 11/9/2007
  • Re: Last login date issue

    This may be a silly question; how do I add the new property of 'Historic_LastLoginDate' to the membership.getuser? I have trioed adding it to the database 'aspnet_Membership' and building the website but it just doesn't recognise it... 'Error 35 'Historic_LastLoginDate' is not a member of System.Web.Security.MembershipUser'. E.
    Posted to Security (Forum) by SuperSharp on 11/9/2007
  • Re: Last login date issue

    I am still getting the same issue. The problem is, after the user is logged in, the 'LastLoginDate' is updated so if I try to display it, it just shows that current login not the 'last' login. I have treid making a profile with a property 'LastLoginDate' but if I try to add to this before the user is logged in - I get the anonymous user error (as above). There must be a way around this but I just can't get it to work :( E.
    Posted to Security (Forum) by SuperSharp on 11/9/2007
  • Last login date issue

    Hello, Just wondering if someone could help me on a problem I have come accross. I am trying to have a 'last log-in date' display in my members area after a user signed in. I have researched to some solutions as to how to do this but haven't had much luck. I have given it ago but I keep getting the same error with all the tests I do. Below is the code I am using to store the date in the user profiles: Protected Sub Login1_Authenticate( ByVal sender As Object , ByVal e As AuthenticateEventArgs
    Posted to Security (Forum) by SuperSharp on 11/8/2007
  • Re: Problems inserting into database :(

    Thanks so much!!! Got it working now with the UPDATE & WHERE. Makes sense now. Sorry for wasting your time... SuperSharp
  • Re: Problems inserting into database :(

    Sorry it seemed to cut half my code off! DBCmd = New SqlCommand( "INSERT INTO aspnet_Users(MobileAlias) VALUES (@Applicant) WHERE UserName=@UserName" , DBConn) That was the full sql command I was using. I have tried several different variations of this with backets etc arond the WHERE part but just keeps throwing up the same error.
  • Problems inserting into database :(

    Hello everyone, I am having some problems inserting some data into a database - I have been stuck on this almost all day now and I'm almost pulling my hair out! I'm quite new to ASP.net and have been thrown in the deep end with this assignment... And advice or help would be greatly appreciated. Thanks. Protected Sub CreateUserWizard1_CreatedUser1( ByVal sender As Object , ByVal e As System.EventArgs) Handles CreateUserWizard1.CreatedUser 'Assign new user to role of Applicant Roles.AddUserToRole
Page 1 of 1 (10 items)