Check this...

santhosh kapa replied to shreya verma at 12-May-08 01:14

I suppose you might require this information in other places too..

Hence, store this information in session while you are logggin in..

ie

Session.Add('LoginUser'Type') = "User"    /       "Officer"

After logging in check this...and redirect to appropriate page

if(Session.Item["LoginUserType"].ToString() == "User")

   Response.Redirect("UserPage.aspx")

else

   Response.Redirect("OfficerPage.aspx")




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Login Prob... - shreya verma  12-May-08 12:53:53 AM
      check User variable's value... - Vasanthakumar D  12-May-08 12:58:48 AM
          See my old code... - shreya verma  12-May-08 1:08:48 AM
              Check this... - santhosh kapa  12-May-08 1:14:42 AM
              use this code... - Vasanthakumar D  12-May-08 1:19:35 AM
                  Thanks - shreya verma  12-May-08 1:22:59 AM
                  Thanks - shreya verma  12-May-08 1:23:00 AM
              Try this - npsenthil kumar  12-May-08 1:35:15 AM
      reply - Danish Shaikh  12-May-08 1:00:54 AM
      Re: Login problem - Chirag Bhavsar  12-May-08 1:08:42 AM
      See This - Sanjay Verma  12-May-08 1:40:10 AM
      Re: - chakradhar koturu  12-May-08 1:41:36 AM
View Posts