How to set Priority in login page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imthiyas
    New Member
    • Jan 2007
    • 6

    How to set Priority in login page

    Hai all,

    I am using a login form in my project...I have created a DB for login form .. my problem is i want to add a priority project i.e:for eg: if a person with login name 'a' logins he can access only pageX.aspx..... can anyone help me with this........... .




    with Regards,
    Imthiyas Ahamed.A
  • ashasprabhu
    New Member
    • Jan 2007
    • 52

    #2
    hi,
    i have an idea about ur query
    So,here is my idea
    use a session variable in the login page
    like
    In the submit button:
    session("uname" )=txtuname.text

    if session("uname" )='a' then
    response.redire ct("pageX.aspx" )
    else
    response.redire ct("pagey.aspx" )
    end if

    hope this code helps
    with regards
    Asha S

    Comment

    • imthiyas
      New Member
      • Jan 2007
      • 6

      #3
      Originally posted by ashasprabhu
      hi,
      i have an idea about ur query
      So,here is my idea
      use a session variable in the login page
      like
      In the submit button:
      session("uname" )=txtuname.text

      if session("uname" )='a' then
      response.redire ct("pageX.aspx" )
      else
      response.redire ct("pagey.aspx" )
      end if

      hope this code helps
      with regards
      Asha S
      yes i ll try with that.. thanx

      Comment

      Working...