Delete Profile

Discussion in 'ASP .Net' started by shapper, Nov 26, 2008.

  1. shapper

    shapper Guest

    Hello,

    I am using a custom profile provider as follows:

    public class ProfileHelper : ProfileBase {

    [SettingsAllowAnonymous(false), SettingsSerializeAs
    (SettingsSerializeAs.Binary)]
    public Profile.Contact Contact {
    get {
    return base["Contact"] as Profile.Contact;
    }
    set {
    base["Contact"] = value;
    }
    } // Contact

    [SettingsAllowAnonymous(true), SettingsSerializeAs
    (SettingsSerializeAs.Binary)]
    public Profile.Visitor Visitor {
    get {
    return base["Visitor"] as Profile.Visitor;
    }
    set {
    base["Visitor"] = value;
    }
    } // Visitor

    public static ProfileHelper GetProfile() {
    return Create(HttpContext.Current.Profile.UserName) as
    ProfileHelper;
    } // GetProfile

    public static ProfileHelper GetProfile(string username) {
    return Create(username) as ProfileHelper;
    } // GetProfile

    } // ProfileHelper

    How can I delete a profile?

    Should I include a method in my custom profile provider to delete a
    profile?

    Thanks,

    Miguel
     
    shapper, Nov 26, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brad
    Replies:
    1
    Views:
    1,348
    Roedy Green
    Jul 19, 2005
  2. Sandeep Grover

    delete on delete !

    Sandeep Grover, Jul 12, 2003, in forum: C++
    Replies:
    19
    Views:
    949
    Chris \( Val \)
    Jul 22, 2003
  3. HeroOfSpielburg
    Replies:
    1
    Views:
    573
    Alf P. Steinbach
    Aug 6, 2003
  4. 0to60
    Replies:
    4
    Views:
    462
    Jerry Coffin
    Dec 19, 2003
  5. Mathieu Malaterre

    delete NULL, what about delete[] NULL

    Mathieu Malaterre, Aug 17, 2004, in forum: C++
    Replies:
    2
    Views:
    4,086
    Mathieu Malaterre
    Aug 17, 2004
  6. Jef Driesen
    Replies:
    1
    Views:
    742
    Gernot Frisch
    Jan 19, 2005
  7. Andy B
    Replies:
    0
    Views:
    720
    Andy B
    May 3, 2008
  8. Steven
    Replies:
    5
    Views:
    708
    Steven
    Oct 24, 2008
Loading...