- The scenario is
I have a sql select statement that is sent from view to another in a TempData and in the next view i retrieve the sql select statement from the TempData and save it into a ViewBag .. and then use it as usual
- The Problem is
When i refresh the page everything is gone .. the TempData is gone and of course the ViewBag is empty
Is there any solution to preserve this sql select statement as long as the view is opened in browser .. and then destroyed automatically afterwords after browsing out of the view
Thanks in advance