473,725 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Membership - Getting user information by UserId

Hi,

I'm trying to get the 'User Information' by using the UserId and it
doesn't work.
This works,
MembershipUser membershipUser = Membership.GetU ser("username") ;
tbxUsername.Tex t = membershipUser. UserName;
tbxEmail.Text = membershipUser. Email;
However, I need to grab this information by UserId (ProviderUserKe y)
and not by Username. But I can't get it to work. Any suggestions?
Thx
M.

Sep 12 '07 #1
0 1381

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1000
by: hikkk | last post by:
I have an application named "wr",and the local destination is "wwwroot\wr",my default website is "wwwroot". when i create an new user "kkk",i found that,in table aspnet_Application,the applicationName is "\" but not "wr",and when i logged on and inserted some data into my table"TbMain",and i found that in aspnet_Users a new user is added automatically with the same userName of "kkk",the same Password, but a different userID and...
6
1465
by: matt | last post by:
hello, im working on my first public-facing ASP.NET 2 website, and i have a question/concern about authentication integration. in ASP.NET 1.1, one would typically go w/ a "role yer own" webforms/database role-based model: in your db youd have a Users table, a RoleGroups table, a UserRoles table (see http://aspnet.4guysfromrolla.com/articles/082703-1.aspx).
1
1794
by: Amir Ghezelbash | last post by:
Hello all, I need help with sql server which i was wondering if someone can shed some light on my problem The problem: Hello all, I need help with sql server which i was wondering if someone can shed some light on my problem The problem:
0
1090
by: neilmcguigan | last post by:
hello, how do i get the userid from the membership provider when the user is anonymous? there is the Membership.GetUser method, but it seems to return null when the user anonymous. Just do a direct db query? Also, is there a method to get the application id, knowing the application name? thanks
10
4862
by: perplexed | last post by:
After a user logs in (ASP.NET 2.0 membership/roles), how do I programmatically access their UserId and other information stored in the ASP.NET database structure? A user may login at Login.aspx and then they are redirected to somepage.aspx. somepage.aspx doesn't have a reference to the login object and can't access UserId. Also, are there any issues with changing the UserId column from a uniqueidentifier to an integer IDENT? Thanks.
3
5520
by: Nightcrawler | last post by:
Hi, I have a blog in my application that any registered user can post to (I am using Microsoft's Memberships and Profiles for this). When I show the blog entries in a datalist I also want to show the username of the registered user that added the entry. My blog table holds the Guid of the user that added the blog entry so I simply want to retrive the user information through the UserId Guid. I found the Membership.GetUser() but it...
0
1286
by: mazdotnet | last post by:
Hi, I'm trying to get the 'User Information' by using the UserId and it doesn't work. This works, MembershipUser membershipUser = Membership.GetUser("username"); tbxUsername.Text = membershipUser.UserName; tbxEmail.Text = membershipUser.Email;
1
2947
by: =?Utf-8?B?aGZkZXY=?= | last post by:
Hello, I have a web application that makes use of the SQL Membership and Role providers. My app has admin screens to manage users (membership), roles, and supplementary user data. I have just deployed the application to a production server. My Question: How do I create the initial Admin role and user in the clean/unpopulated database that has the Membership and Role schema on this production server?
6
2931
by: Jonathan Wood | last post by:
Although this will be a challenge at my level of ASP.NET knowledge, I'm thinking I should implement my own membership provider class. Looking over the methods I must implement, a number of questions come to mind. 1. How would one implement GetNumberOfUsersOnline? I'm not sure where there is any indication of this? And it this affected by the "Remember me next time" checkbox, which doesn't seem to work like it does on any other site...
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.