70-573 · Question #234
You need to create a Web control that displays HTML content during the last stage of the page processing lifecycle. Which method should you override in the Web control?
The correct answer is B. Render. MNEMONIC RULE: "Render" This is not an event; instead, at this stage of processing, the Page object calls this method on each control. AllASP.NET Web server controls have a Render method that writes out the control's markup to send to thebrowser. If you create a custom control…
Question
You need to create a Web control that displays HTML content during the last stage of the page processing lifecycle. Which method should you override in the Web control?
Options
- ALoadControlState
- BRender
- CSaveViewState
- DSetDesignModeState
How the community answered
(44 responses)- A2% (1)
- B80% (35)
- C11% (5)
- D7% (3)
Explanation
MNEMONIC RULE: "Render" This is not an event; instead, at this stage of processing, the Page object calls this method on each control. AllASP.NET Web server controls have a Render method that writes out the control's markup to send to thebrowser. If you create a custom control, you typically override this method to output the control's markup. ASP.NET Page Life Cycle Overview
Topics
Community Discussion
No community discussion yet for this question.