Jake
Jake

Reputation: 16857

State management techniques ASP .NET MVC 2

I am new to ASP.NET MVC and have worked in ASP.NET before. I am starting a new project in ASP.NET MVC 2 and wanted to find out what all state management techniques are available in ASP.NET MVC 2.

Can anyone please suggest some good resource.

Thanks.

Upvotes: 1

Views: 6702

Answers (2)

frennky
frennky

Reputation: 14004

For state management you can use Session, but to do it the MVC way, you should combine it with action filters.

Here are some links that can help you:

Upvotes: 0

Erik A. Brandstadmoen
Erik A. Brandstadmoen

Reputation: 10588

You can use Session just as in ASP.NET WebForms. Was there anything else you wondered? You don't have ViewState as in WebForms, but you can use ViewDatato pass data between controllers and views (see e.g. http://msdn.microsoft.com/en-us/library/dd394711.aspx). What kind of state are you planning to manage?

Upvotes: 1

Related Questions