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

Custom controls must override the Render() method to generate their HTML output. This method receives a HtmlTextWriter object that you use to write the control's markup. Options A and B don't exist in the ASP.NET control lifecycle, and overriding constructors is optional, not required for basic control functionality.