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. how to use login

how to use login

Scheduled Pinned Locked Moved ASP.NET
tutorial
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.
  • S Offline
    S Offline
    salil_k_singh
    wrote on last edited by
    #1

    in my project, in login form ,i want to use role as admin and user. i made one table in sqlserver2000 and specify the role then according to role how i login. plese specify the code

    Signature preview salil_k_singh 11:06 15 Jul '07

    C E 2 Replies Last reply
    0
    • S salil_k_singh

      in my project, in login form ,i want to use role as admin and user. i made one table in sqlserver2000 and specify the role then according to role how i login. plese specify the code

      Signature preview salil_k_singh 11:06 15 Jul '07

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I am not sure if there's any role based stuff build in, but you can store what someones role is. in the session, or call the data layer to tell you this based on the login. The idea is, your login user has one or more roles, then the roles define what can be done. You use roles so you can specify what a group of people can do, not just one person.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • S salil_k_singh

        in my project, in login form ,i want to use role as admin and user. i made one table in sqlserver2000 and specify the role then according to role how i login. plese specify the code

        Signature preview salil_k_singh 11:06 15 Jul '07

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        You can set the roles as admin and user by using 1 and 0. Apply the admin user the number 0 and normal user 1. Then you can just check which number is logging on to determine what facilities to let that person use.

        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