Hi everyone, another ASP.NET MVC question.
Assume the following scenario. You have three controllers:
getFirstData
getSecondData
useFirstData
The workflow of your site requires that the user first uses the getFirstData
controller, and inputs some data (lets say an int) in the view.
I then need to use the second controller (getSecondData
) for something else.
Only then does he use the third controller (useFirstData
), and needs the original data he inputted in the first controller.
What is the most appropriate way to hang on to that data?
I can pass it along in the model I created through the controllers, but that requires me to "update" the value I pass inside the views, which seems "hackish".
A global variable seems "wrong".
What is the standard way?
Thank you,
Tom