In this way...

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

after you query the database for authentication, once it is succesful, you can directly transfer the user to the respective page if you are using different pages for user and officer without any session variable

if the same page then after adding to the session

retrieve the value from session using

string userType = Session.Item["userType"].ToString();

if (userType == "User")

{

//   write your code related to user

}

else

{

   //officer related code...

}




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Tell this.... - shreya verma  08-May-08 12:15:23 AM
      Re: - Aravind Kumar  08-May-08 12:29:02 AM
          Plz tell... - shreya verma  08-May-08 12:33:29 AM
              In this way... - santhosh kapa  08-May-08 12:57:48 AM
                  tell - shreya verma  08-May-08 1:07:16 AM
                      it will... - santhosh kapa  08-May-08 1:13:08 AM
                          no - shreya verma  08-May-08 1:29:08 AM
                              hmm...confused - santhosh kapa  08-May-08 1:41:19 AM
      try this... - Vasanthakumar D  08-May-08 12:33:14 AM
      Try this - Sujit Patil  08-May-08 12:46:02 AM
          What to do??? - shreya verma  08-May-08 1:11:51 AM
              try this... - santhosh kapa  08-May-08 1:16:36 AM
              You can - Sujit Patil  08-May-08 2:12:26 AM
      If you are using Forms Authentication - Vaibhav Gadodia  08-May-08 1:08:32 AM
      See This - Sanjay Verma  08-May-08 6:18:36 AM
View Posts