We are trying to use the MVP pattern in our current project (asp.net application) and have encountered some problems. The page has several sections, and we use custom controls for these independent sections. Now each user control has its own view and presenter, and the page acts as the base view. Now the question is how to transfer the data necessary for user control?
In accordance with the current design, the page host will receive the necessary data for the entire page. How can this data be transferred to a user management presentation?
Another approach that we are thinking of is to instead create only views for user controls and use page presentations to handle all events. In this case, we will use several presentation interfaces that will be implemented using each user control type. But how would the lead page interact with all the different views?
Thanks, JBN
source
share