Ok where should I create dynamic controls

I have just been active on two questions regarding dynamic controls, the answer almost always concerns re-creation on the reverse side, the question is where is this place for this

Here are two SO questions

question one

question 2

We always create dynamic controls by overriding CreateChildControls

Looking through the many controls in the reflector, mainly tele-control, I always thought it was right, but so many people say that they should be created in Init.

Should I continue to use CreateChildControls or initiate the correct path ... Why does this seem so confusing.

+3
source share
2 answers

In truth, they both do the same thing. If you develop management tools for your organization, then its inclusion in init will be very good (how it will work in it, even if its "technically this place should be"), but MS has created a method in which they expect it.

Telerik, , - , CreateChildControls. ? , , , MS , . ( , , ), , - , , , init, , . , , . CreateChildControls, , : ", , - , ". , , .

, CreateChildControls, , , , ( , , , ). , init init, - "" , , .

+3

Source: https://habr.com/ru/post/1781456/


All Articles