if (Membership.ValidateUser(txt_email.Text, txt_password.Text)) { string userId = Membership.GetUser().ProviderUserKey.ToString(); }
string userId = Membership.GetUser("userName").ProviderUserKey.ToString(); // pass your name in GetUser.
GetUser
null
ProviderUserKey
.ToString()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)