MembershipUser u = Membership.GetUser(User.Identity.UserName);
if (u != null)
{
MembershipProvider mp;
mp.ChangePassword(u.UserName,TxtPwd.Text,TxtNewPwd.Text);
}
The Problem is that when I am using User.Identity.UserName , I am not getting the username of the currently logged in user. I am getting a blank value - "".
What is wrong ?