try this

Vasanthakumar D replied to Charvi Sanghavi at 03-Jul-08 12:41

Hi,

you can change the session value when user change the roles like below one... for this you need to have two sessions,

1. One for old role

2. one for new role

suppose use select the new role from dropdown and click the button, thenin button click event set the below thing...

Session["Old_Role"] = Session["New_Role"].ToString();

Session["New_Role"] = dropdownRole.Text;

 

while login you can store the default role value in the above two session.


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Tracking changes to Session Variables. - Charvi Sanghavi  02-Jul-08 09:48 9:48:41 PM
      See this - Sujit Patil  03-Jul-08 12:14 12:14:16 AM
      try this - Vasanthakumar D  03-Jul-08 12:41 12:41:27 AM
      Update Session variable also - Arvind Kumar  03-Jul-08 12:45 12:45:50 AM
      reply - alice johnson  03-Jul-08 12:58 12:58:03 AM
      You can do this - santhosh kumar  03-Jul-08 01:04 1:04:52 AM
View Posts