asp.net mvc - Serialize MVC ViewDataDictionary -
I am using SQL state server for session variables. I am storing ViewData in TempData so I can redirect But I can use ModelState. The problem is that ViewDataDictionary is not sorted.
Thanks
I think you break an original idea of MVC pattern
You do not need a session variable. You pass the model in this view, then the model is sent back to the controller, it does not matter whether it is a redirect or not. .
Comments
Post a Comment