What is the main method to be override while creating custom web part ?
-
Databind()
-
CreateChildControls()
-
CreateChildRender()
-
OverrideChildControls()
B
Correct answer
Explanation
CreateChildControls() is the primary method to override when creating custom WebParts - this is where you instantiate and add your child controls to the controls collection. Databind() is for data binding operations, not control creation. CreateChildRender() and OverrideChildControls() are not standard WebPart methods.