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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Membership Roles

Membership Roles

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsalestutorial
3 Posts 3 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.
  • K Offline
    K Offline
    KhandelwalA
    wrote on last edited by
    #1

    Is it possible to assign a default role in asp.net role and membership provider.......for e.g. there is two roles in my website.......Ist is Admin and IInd is Customer...........and if any user registers himself...........he must be automatically assigned to customer role..........is it possible...........plz guide me a bit.......:)

    A S 2 Replies Last reply
    0
    • K KhandelwalA

      Is it possible to assign a default role in asp.net role and membership provider.......for e.g. there is two roles in my website.......Ist is Admin and IInd is Customer...........and if any user registers himself...........he must be automatically assigned to customer role..........is it possible...........plz guide me a bit.......:)

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Just Read This Article :) How To: Use Role Manager in ASP.NET 2.0[^]

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • K KhandelwalA

        Is it possible to assign a default role in asp.net role and membership provider.......for e.g. there is two roles in my website.......Ist is Admin and IInd is Customer...........and if any user registers himself...........he must be automatically assigned to customer role..........is it possible...........plz guide me a bit.......:)

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #3

        Do it Programatically.Add this Code

        Roles.AddUserToRole("UserName","Customer")

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        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