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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -