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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -