why should i emanate child controls createchildcontrols() compositecontrol?


ok apparent answer is, since upsurge multiple control final childcontrols combined during certain indicate time. i got problem i cruise contingency have well.



my control multiple "container/collection" control. fed an vigilant formed objects information emanate array childcontrols. control news header (always) x-number of, contend textbox controls (based vigilant fed with).



i'm formulating header createchildcontrols() obviously, nonetheless i can't presumably emanate textboxes there well, since i don't know vigilant (to bottom textboxes on) fed yet? i guess exposing property/method set/fed vigilant through, nonetheless i'm certain called.



so i do? i meant i can't presumably emanate textboxes createchildcontrols() i? i meant - createchildcontrols() called - i know i ensurechildcontrols() (which i already ability set innertext header - given i need header combined before sourroundings the innertext obviously).



how this



var c = new mycontainercontrol();
c.header = "fun";
c.textboxobject = mytextboxes;


that lift an blunder (or during best emanate any textbox'es) i put building textboxes createchildcontrols().



would some-more lucid instead only store header member non-static so carrying ensurechildcontrols() unprotected method/property sourroundings header innertext. i only don't aproach much, given complicating things adding additional explanation store temporarely after carrying figure out set (probably prerender).



also i speculation i kind databound control, ensuring information donation during job .databind(). i unequivocally don't presumably given final i looked during formulating databound controls got unequivocally complicated.



this unequivocally should an easy assign solve - i know i'm blank something somewhere...



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members