How to re-use model data on post back with MVC
问题 I'm passing structured data to my MVC page when it loads initially. After the user submits a contact form, I want to re-use the same data (I just "leave" the same page up) so I don't have to hit the database again. I declared a variable global to the controller to store the model data, but it's null at the end of the post back, so it looks like I can't re-use it there. Seems like this would be a typical scenario. How do I handle it? 回答1: If you are wanting to reuse viewmodel or other