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. need help.

need help.

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
4 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.
  • C Offline
    C Offline
    chubbie
    wrote on last edited by
    #1

    here's the situation: i have a login page with a textbox for User ID, and another textbox for password. i have a button named "Login".. what i want this login button to do is, when the user is the administrator, when he/she key in the id and password, and click Login, i want the page to bring him/her to pages for administrator. when the user is the Guest, the page should bring him/her to pages for guest. may i know how to code this? thanks alot..:-D -DarkangeL-

    I I 2 Replies Last reply
    0
    • C chubbie

      here's the situation: i have a login page with a textbox for User ID, and another textbox for password. i have a button named "Login".. what i want this login button to do is, when the user is the administrator, when he/she key in the id and password, and click Login, i want the page to bring him/her to pages for administrator. when the user is the Guest, the page should bring him/her to pages for guest. may i know how to code this? thanks alot..:-D -DarkangeL-

      I Offline
      I Offline
      imsathy
      wrote on last edited by
      #2

      work using authentication and authorization in ur web.config file... create a folder via app and add all the admin pages in there add a web.config file in tht folder to provide necessary authentication and authorization for all the pages in that folder... enter this code in the authentication tag

      and add the users to be allowed in the authorization tag... sathy

      C 1 Reply Last reply
      0
      • I imsathy

        work using authentication and authorization in ur web.config file... create a folder via app and add all the admin pages in there add a web.config file in tht folder to provide necessary authentication and authorization for all the pages in that folder... enter this code in the authentication tag

        and add the users to be allowed in the authorization tag... sathy

        C Offline
        C Offline
        chubbie
        wrote on last edited by
        #3

        Thanks sathy for your help.. very much appreciated.:laugh: -DarkangeL-

        1 Reply Last reply
        0
        • C chubbie

          here's the situation: i have a login page with a textbox for User ID, and another textbox for password. i have a button named "Login".. what i want this login button to do is, when the user is the administrator, when he/she key in the id and password, and click Login, i want the page to bring him/her to pages for administrator. when the user is the Guest, the page should bring him/her to pages for guest. may i know how to code this? thanks alot..:-D -DarkangeL-

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          Well actually use the FormsAuthentication class and call Redirect method to users or admin depending on the return value of the stored procedure Nick 1 line of code equals many bugs. So don't write any!!

          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