c# - WebFormsMVP Model in OnInit event -


i'm trying add dynamic controls based on model in oninit method "the model property null, should have been automatically initialized presenter. indicates no presenter bound control. check presenter bindings." error. if add controls in onload not working right - events not fired.

also see presenter binding occuring in initcomplete event

code:

    protected override void oninit(eventargs e)     {          base.oninit(e);          this.onloadtitle();          foreach (var platform in model.title.platforms)         {             var tab = createtabforplatform(platform);             this.tabview.tabs.add(tab);         }     } 

how can around issue. thank you/


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -