using asp.net membership provider how to check if the user is registered or not?

ahmed picture ahmed · Feb 1, 2009 · Viewed 34.6k times · Source

using asp.net and c# membership provider how to check if the user is registered or not? I want to handle this in code not by using "login status"?

Answer

Glennular picture Glennular · Feb 1, 2009

Not sure if you want to know if they are a "registered" user or have logged in (as the Login status would indicate)

Here's to know if they are logged in (what the Login status uses):

System.Web.HttpContext.Current.User.Identity.IsAuthenticated;