Multiple choice technology web technology

What is the main method to be override while creating custom web part ?

  1. Databind()

  2. CreateChildControls()

  3. CreateChildRender()

  4. OverrideChildControls()

Reveal answer Fill a bubble to check yourself
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.