Hi All
What is the best way to pass data between different controller methods in support of different views?
Thanks
Hi All
What is the best way to pass data between different controller methods in support of different views?
Thanks
Could you please explain what you mean by “passing data”? Do you mean calling other methods in a controller or do you mean keeping information around through different requests.
If you mean the latter, then your session is the way to go if that information is not fit to be in the database.
Damjan, could you expound on your response? Controllers do not get their own session. The session is the construct built to keep information around for the entire time a user is using your site.
Jason