Search code examples
asp.netmvp

Where Should MVP Presenters Be Stored in an ASP.NET web app?


Where should presenters be stored in an ASP.NET using the MVP pattern in a web app? Should it be stored in the..

  • .. ViewState
  • .. Session
  • .. or should it be static?
  • .. or recreated with every postback?

Solution

  • They would not be stored anywhere. There are recreated on every postback and wired up with a view that is created (aspx,ascx)