J
John
Hi
I am trying to approve a user as below;
Dim User As MembershipUser
User = Membership.GetUser("MyUsername")
User.IsApproved = False
I am getting an "Object reference not set to an instance of an object."
error on the last line. What is the problem and how can I fix it?
Thanks
Regards
I am trying to approve a user as below;
Dim User As MembershipUser
User = Membership.GetUser("MyUsername")
User.IsApproved = False
I am getting an "Object reference not set to an instance of an object."
error on the last line. What is the problem and how can I fix it?
Thanks
Regards