How to redirect user based on dropdown selection of master page using session?
问题 I have a dropdown on my master page which contains departments list.Now i have several pages which displays list of records based on department selection and change. So when user select new department from dropdown I make an AJAX call to my MVC controller and send department id to that controller and store it in session and used that session across all the pages as because all my pages are department driven. Implementation: @{ int departmentId = 0; int.TryParse(Convert.ToString(Session[