Webforms MVP PresenterBinding attribute not adhered

Gabapacen

New Member
I'm trying to use Webforms MVP in my solution but keep getting the following error: \[quote\] The Model property is currently null, however it should have been automatically initialized by the presenter. This most likely indicates that no presenter was bound to the control. For more information, check the ASP.NET tracing output at ~/Trace.axd.\[/quote\]I also notice that my presenter isn't constructed. What am I missing here...?What I did:1 Create a modelpublic class MyModel { public string Name {get;set;}}2 Create a view interfacepublic interface MyView : IView {}3. Create a Presenterpublic class MyPresenter : Presenter { public MyPresenter(MyView view) : base(view) { }}4. Bind the presenter to the view implementation using the \[code\]PresenterBinding\[/code\] attribute[PresenterBinding(typeof(MyPresenter))]public partial class MyControl : MvpUserControl, MyView {}
 
Back
Top