Great project which really helped me out on the understanding of the MVP pattern.
I was curious why the CurrentTimeView control has an interface that the presenter expects when he is created by the ShowMeTheTime.aspx page but CurrentTimeView expects the presenter to be passed and not an interface?
I know there can be static web methods in the code behind, which in theory could achieve the same thing, but that aside, without using code in the code behind file, to implement MVP how can AJAX be used?
I've started to build some application,using MVP design pattern and I saw that interfaces and presenters amount is growing as number of pages is growing as well,so in somewhen it becomes a litle hard to navigate between all this interfaces/presenters. Is there a way to reduce the amount of interfaces/presenters? I am not sure that putting all interfaces into one file and putting all presenters into another file is a good solution..
Thanks for your time.
You're beginning to encounter some of the challenges that I faced as well which ultimately led my decision to switch from MVP to MVC (first via Castle MonoRail and then with ASP.NET MVC). Without a doubt, keeping the MVP elements well organized is a challenge; one which I do not have a clear and simple answer to.
Hello Billy McCafferty.
This is really good article,I've loved it very much.
I have just one question:I've understood almost everything,except how you have implemented the Core assembly and Data assembly. I tried to debug your code,but it is a little hard to follow it because I am new in this method of programming.
Can you please explain the implementation of this both assemblies and the relationship between them?
If you do,I will very appreciate and it will really help me,because I want to start programming using MVP pattern and I think that this is a good way to build web application.
Curently we are using basic 3-tier architecture model for our project.We are going to move from this to MVP or MVC Pattern.But we are still doubted about the MVC Pattern because our project is more complicated.So we are going to use MVP..is it right decision? i am totally confused which one is best??? Please Reply me
Thanks for the Reply Bill,
We are working on Classical ASP.NET Pages. According to the Design We couldnt use Grid View Controls.Everything Based on Html Tables (includes ALL Dynamic Tables) We Still worried about N-Tier(Layer) Architecture.What is the Major Difference B/w MVP and N Tier Architecture...Can u explain Please????