Cannot turn IsApproved False

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cirene

    Cannot turn IsApproved False

    Here's my code:

    Dim usr As MembershipUser =
    Membership.GetU ser(CType(CType (fvPosterInfo.F indControl("Use rNameLabel"),
    Label).Text, String))
    usr.IsApproved = False

    After I set usr.IsApproved it takes ok, but when I check the
    aspnet_Membersh ip table the IsApproved is still True! Am I doing this
    right????


  • Cirene

    #2
    Re: Cannot turn IsApproved False

    FYI: i had to do this...

    Membership.Upda teUser(usr)

    :)

    "Cirene" <cirene@nowhere .comwrote in message
    news:%23gh6gU3s IHA.4376@TK2MSF TNGP06.phx.gbl. ..
    Here's my code:
    >
    Dim usr As MembershipUser =
    Membership.GetU ser(CType(CType (fvPosterInfo.F indControl("Use rNameLabel"),
    Label).Text, String))
    usr.IsApproved = False
    >
    After I set usr.IsApproved it takes ok, but when I check the
    aspnet_Membersh ip table the IsApproved is still True! Am I doing this
    right????
    >

    Comment

    Working...