i have i page where i use autocomplete jquery plugin. this might filter from database. but i do not want to make request to DB. so i have write it to session object as List. and every time i am filtering data from this session. what i am doing wrong or have there any other way to do it?
Share
I would recommend you using the Cache object instead of the Session. Remember that the session is tied to a particular user. So if another user comes to your site he will hit the database as well. The Cache object is common for all users. So your controller action might look something like this: