Multiple choice technology programming languages

What method must be overridden in a custom control ?

  1. The Paint() method

  2. The Control_Build() method

  3. The Render() method

  4. The default constructor

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

When creating custom ASP.NET controls, the Render() method (from System.Web.UI.Control) must be overridden to output the control's HTML markup. This method receives an HtmlTextWriter parameter used to write the control's visual representation. Paint() is for Windows Forms, Control_Build() and default constructors are not the required override methods for rendering.