If I redirect to a new page passing TempData to initialise the page it works fine, however if the user presses the refresh button in their browser the TempData is no-longer
The only features that can solve your issue is Cache
and Session
.
ViewData
essentially 'dies' out when the view is generated.
If you can provide more details on what you're trying to accomplish, maybe another solution can be given, however, it seems the best option for you is to use Session
or Cache
.