J
Jeff
ASP.NET 2.0
The code below doesn't set IsApproved to true. I mean that I've debugged
this code and usr.IsApproved actually get set to true. But when I quit the
application and in VS2005 I start "ASP.NET Configuration" then I still see
the user without the "active" column checked. To me it looks like
usr.IsApproved isn't saved back to the database, I thought the
MembershipUser automatically would do this?? What am I doing wrong here???
if (Request.QueryString["user"] != null)
{
string username = Request.QueryString["user"].ToString();
if (username.Length > 0)
{
MembershipUser usr = Membership.GetUser(username);
usr.IsApproved = true;
}
}
Jeff
The code below doesn't set IsApproved to true. I mean that I've debugged
this code and usr.IsApproved actually get set to true. But when I quit the
application and in VS2005 I start "ASP.NET Configuration" then I still see
the user without the "active" column checked. To me it looks like
usr.IsApproved isn't saved back to the database, I thought the
MembershipUser automatically would do this?? What am I doing wrong here???
if (Request.QueryString["user"] != null)
{
string username = Request.QueryString["user"].ToString();
if (username.Length > 0)
{
MembershipUser usr = Membership.GetUser(username);
usr.IsApproved = true;
}
}
Jeff