Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:768423
More Search Options
RSS Available
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
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
SuperSharp
on 10/30/2007
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.
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
SuperSharp
on 10/30/2007
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
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
SuperSharp
on 10/30/2007
Page 1 of 1 (10 items)
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
ASP.NET:
T4MVC now has a real home and a dedicated forum!
TechNet Edge:
Windows Server 2008 R2 : New Power Management Features
ASP.NET:
Web Deployment Painkillers: VS 2010 & MS Deploy
WindowsClient:
Application Accessibility Testing
WindowsClient:
Prism & WCF RIA Services
Channel 9:
Sharepoint 2010 and Claims-Based Identity
WindowsClient:
IRhetoric Ported To BlogEngine.NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online