Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Extending Membership / Profile information ?

Extending Membership / Profile information ?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpperformancehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Skoder
    wrote on last edited by
    #1

    Hello, i am using .net 2.0 and want to use the build in membership / profile option. But i am wondering how i extend the data that could be stored about an user ? Etc. i like to also store the age, country and soo on. But i cannot see any option to do something like Membership.addProperties or something like that. I dont know if i should use the Profile object, but should i then create the fields in the tables myself, and how do i make sure that the data is being added to the right member in the membership table... Also should i then first create a Member in the Membership table, and the afterwards save the other data ? ... As you can see i have a lot of questions, soo if you could give me link to a article explaning how it works and how i extend it, it would be really great. Or just give me a hint on where to look or what to search for... I think i have somewhere seen that it should actually just be added to the profile class through the webconfig file. Do anyone have any comments about the performance of the build in membership / profile option ? and if the informations are stored in the Profile object, they are only loaded when requested, not on every single refresh / page load ? Hope someone have the time to help me in the right direction :confused: Best regards Martin

    M 1 Reply Last reply
    0
    • S Skoder

      Hello, i am using .net 2.0 and want to use the build in membership / profile option. But i am wondering how i extend the data that could be stored about an user ? Etc. i like to also store the age, country and soo on. But i cannot see any option to do something like Membership.addProperties or something like that. I dont know if i should use the Profile object, but should i then create the fields in the tables myself, and how do i make sure that the data is being added to the right member in the membership table... Also should i then first create a Member in the Membership table, and the afterwards save the other data ? ... As you can see i have a lot of questions, soo if you could give me link to a article explaning how it works and how i extend it, it would be really great. Or just give me a hint on where to look or what to search for... I think i have somewhere seen that it should actually just be added to the profile class through the webconfig file. Do anyone have any comments about the performance of the build in membership / profile option ? and if the informations are stored in the Profile object, they are only loaded when requested, not on every single refresh / page load ? Hope someone have the time to help me in the right direction :confused: Best regards Martin

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      + You can save those custom values in the user profile, you can have a quick look at an example from Scott's post[^].

      Skoder wrote:

      and if the informations are stored in the Profile object, they are only loaded when requested, not on every single refresh / page load ?

      + Dino's explanation[^] might give you an idea on the topic.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups