Issue with storing items in session in MVC
Posted
by
Sundeep
on Stack Overflow
See other posts from Stack Overflow
or by Sundeep
Published on 2012-09-17T21:19:39Z
Indexed on
2012/09/17
21:38 UTC
Read the original article
Hit count: 199
asp.net-mvc
I have a customer page on which user can enter multiple locations for customer. I am using telerik ajax grid to display locations, and when a new location is added, I am adding it to session and returning back to the grid. Finally, when user submits, customer and all locations using customerid as reference key gets inserted. I am clearing the session, when user enters create/edit page and on successful commit or any exception occurs. Problem is when user adds the locations for one user and then opens another tab, to create another user then all locations get cleared for previous user. Coz of session, this issue is occuring. Something of viewstate would be page specific. But for ajax grid actions, viewdata/viewbag is not working. Any thoughts on how to implement this. Thanks in advance.
© Stack Overflow or respective owner