Link to home
Start Free TrialLog in
Avatar of tenderroni992003
tenderroni992003Flag for United States of America

asked on

Verify user exits

Hi Experts.

I"ve been searching forever and can't seem to find out how to verify that a user exists in asp.net 2.0
 I'm using the Authorization/Membership Management and c#

Tahnks!
ASKER CERTIFIED SOLUTION
Avatar of guru_sami
guru_sami
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tenderroni992003

ASKER

I tried the above solution, and it always returns null.


admin: relevance:  asp.net 2.0, c#,  microsoft programming

make sure your membership is working properly.
i.e. Are you able to create new user and login with that username?
Please provide more info on what exactly you did and what exactly you are looking for.
guro_sami, your solution was absolutely correct!  Thank you!

I fond my error.  I was getting the string from a text box, but I wasn't converting the textbox text to a string.  I thought that you could stop at textbox.Text, but you actually have to have
textbox.Text.ToString().  
so the following works:  Membership.GetUser(textbox.Text.ToString())
Go figure.

Thank you so much!

 
Thank yo so much for all of your wonderful help!